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,15 +66,17 @@ public class UntapAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (source != null && source.isCreature() && sa.getPayCosts() != null && sa.getPayCosts().hasTapCost()) {
|
if (source != null && source.isCreature() && sa.getPayCosts() != null && sa.getPayCosts().hasTapCost()) {
|
||||||
// Voyaging Satyr and friends: only do it after attacking/blocking and not when in immediate danger
|
if (sa.getTargetRestrictions() != null && !sa.getTargetRestrictions().canTgtCreature()) {
|
||||||
PhaseHandler ph = source.getGame().getPhaseHandler();
|
// Voyaging Satyr and friends: only do it after attacking/blocking and not when in immediate danger
|
||||||
if (ph.getPhase().isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
|
PhaseHandler ph = source.getGame().getPhaseHandler();
|
||||||
return false;
|
if (ph.getPhase().isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
|
||||||
}
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (ai.getLife() < ai.getStartingLife() / 4
|
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 false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user