mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Merge branch 'fix-lifeloseai' into 'master'
Fix LifeLoseAI not targeting for subabilities like Revenge. Closes #906 See merge request core-developers/forge!1457
This commit is contained in:
@@ -51,6 +51,13 @@ public class LifeLoseAi extends SpellAbilityAi {
|
||||
if (tgtPlayers.contains(ai) && amount > 0 && amount + 3 > ai.getLife()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (sa.usesTargeting()) {
|
||||
if (!doTgt(ai, sa, false)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user