mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Further logic update for Voyaging Satyr and similar cards.
This commit is contained in:
@@ -66,6 +66,7 @@ public class UntapAi extends SpellAbilityAi {
|
||||
}
|
||||
|
||||
if (source != null && source.isCreature() && sa.getPayCosts() != null && sa.getPayCosts().hasTapCost()) {
|
||||
if (sa.getTargetRestrictions() != null && !sa.getTargetRestrictions().canTgtCreature()) {
|
||||
// Voyaging Satyr and friends: only do it after attacking/blocking and not when in immediate danger
|
||||
PhaseHandler ph = source.getGame().getPhaseHandler();
|
||||
if (ph.getPhase().isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
|
||||
@@ -73,10 +74,11 @@ public class UntapAi extends SpellAbilityAi {
|
||||
}
|
||||
|
||||
if (ai.getLife() < ai.getStartingLife() / 4
|
||||
&& ((ai.getLifeLostLastTurn() > 0 || ai.getLifeLostThisTurn() > 0) && ph.getPlayerTurn().isOpponentOf(ai))) {
|
||||
&& (ai.getLifeLostLastTurn() > 0 || ai.getLifeLostThisTurn() > 0 || ph.getPlayerTurn().isOpponentOf(ai))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user