- Fix LifeLoseAI not targeting for subabilities like Revenge.

This commit is contained in:
Agetian
2019-03-14 16:56:23 +03:00
parent 586e502780
commit 1ebde0d976

View File

@@ -51,6 +51,13 @@ public class LifeLoseAi extends SpellAbilityAi {
if (tgtPlayers.contains(ai) && amount > 0 && amount + 3 > ai.getLife()) { if (tgtPlayers.contains(ai) && amount > 0 && amount + 3 > ai.getLife()) {
return false; return false;
} }
if (sa.usesTargeting()) {
if (!doTgt(ai, sa, sa.isMandatory())) {
return false;
}
}
return true; return true;
} }