mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
DamageDealEffect: fix removeDamage
This commit is contained in:
committed by
Michael Kamensky
parent
a1d241dd6e
commit
d1199e2698
@@ -237,9 +237,11 @@ public class DamageDealEffect extends DamageBaseEffect {
|
||||
}
|
||||
|
||||
for (final Object o : tgts) {
|
||||
dmg = (sa.usesTargeting() && sa.hasParam("DividedAsYouChoose")) ? sa.getTargetRestrictions().getDividedValue(o) : dmg;
|
||||
if (dmg <= 0) {
|
||||
continue;
|
||||
if (!removeDamage) {
|
||||
dmg = (sa.usesTargeting() && sa.hasParam("DividedAsYouChoose")) ? sa.getTargetRestrictions().getDividedValue(o) : dmg;
|
||||
if (dmg <= 0) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (o instanceof Card) {
|
||||
final Card c = (Card) o;
|
||||
|
||||
Reference in New Issue
Block a user