diff --git a/WORKLOG.md b/WORKLOG.md index 85c3a5bd..3b79c1d5 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -20,11 +20,6 @@ - fx for buffs when applied to enemies - invert + haste -> doubles all cooldowns -- haste - - additional attack with red skills if affected - - deal % dmg based on speed difference between source and target? - - l2 maybe reduce cooldowns or something - - heal - buff % @@ -34,7 +29,6 @@ *CLIENT* -purge green disable rework scatter hatred maybe diff --git a/client/src/utils.jsx b/client/src/utils.jsx index 24da2f4b..3b506704 100644 --- a/client/src/utils.jsx +++ b/client/src/utils.jsx @@ -121,6 +121,11 @@ function eventClasses(resolution, construct) { construct.blue_life.value = resolution.target.blue; return 'blue-damage'; } + if (colour === 'Green') { + construct.green_life.value = resolution.target.green; + return 'green-damage'; + } + } } @@ -246,7 +251,9 @@ function getCombatText(construct, resolution) { } if (type === 'Damage') { - const { skill, amount, mitigation, colour } = event; + const { skill, mitigation, colour } = event; + let { amount } = event; + if (colour === 'Green') amount *= -1; const mitigationText = mitigation ? `(${mitigation})` : '';