fix recharge show current red / blue life during combat, skip if 0 recharge and apply css
This commit is contained in:
@@ -177,7 +177,10 @@ function getText(resolution, sequence) {
|
||||
|
||||
if (type === 'Recharge') {
|
||||
const { red, blue } = event;
|
||||
return { text: [`+${red}R ${blue}B`, ''], css: '' };
|
||||
if (red > 0 && blue > 0) return { text: [`+${red}R +${blue}B`, ''], css: 'purple-damage' };
|
||||
if (red > 0) return { text: [`+${red}R`, ''], css: 'red-damage' };
|
||||
if (blue > 0) return { text: [`+${blue}B`, ''], css: 'blue-damage' };
|
||||
return nullText;
|
||||
}
|
||||
|
||||
if (type === 'Removal') {
|
||||
|
||||
Reference in New Issue
Block a user