Refactor damage with power effect, added checking for wrong targets;

This commit is contained in:
Oleg Agafonov 2020-01-13 13:49:40 +04:00
parent 62530b3880
commit 4a004a27b3
16 changed files with 212 additions and 131 deletions

View file

@ -144,7 +144,9 @@ public final class RateCard {
return 1;
}
}
if (effect instanceof FightTargetsEffect || effect instanceof DamageWithPowerTargetEffect) {
if (effect instanceof FightTargetsEffect
|| effect instanceof DamageWithPowerFromOneToAnotherTargetEffect
|| effect instanceof DamageWithPowerFromSourceToAnotherTargetEffect) {
return 1;
}
if (effect.getOutcome() == Outcome.Damage || effect instanceof DamageTargetEffect) {