green damage resolutions

This commit is contained in:
ntr 2019-06-07 17:54:02 +10:00
parent af569b155e
commit a3d596a9b2
2 changed files with 8 additions and 7 deletions

View File

@ -20,11 +20,6 @@
- fx for buffs when applied to enemies - fx for buffs when applied to enemies
- invert + haste -> doubles all cooldowns - 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 - heal
- buff % - buff %
@ -34,7 +29,6 @@
*CLIENT* *CLIENT*
purge green disable
rework scatter rework scatter
hatred maybe hatred maybe

View File

@ -121,6 +121,11 @@ function eventClasses(resolution, construct) {
construct.blue_life.value = resolution.target.blue; construct.blue_life.value = resolution.target.blue;
return 'blue-damage'; 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') { 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 const mitigationText = mitigation
? `(${mitigation})` ? `(${mitigation})`
: ''; : '';