green damage resolutions
This commit is contained in:
@@ -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})`
|
||||
: '';
|
||||
|
||||
Reference in New Issue
Block a user