mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- A minor clarification / formatting fix.
This commit is contained in:
@@ -30,7 +30,8 @@ public class PlayAi extends SpellAbilityAi {
|
|||||||
|
|
||||||
final Game game = ai.getGame();
|
final Game game = ai.getGame();
|
||||||
final Card source = sa.getHostCard();
|
final Card source = sa.getHostCard();
|
||||||
// don't use this as a response (ReplaySpell logic is an exception)
|
// don't use this as a response (ReplaySpell logic is an exception, might be called from a subability
|
||||||
|
// while the trigger is on stack)
|
||||||
if (!game.getStack().isEmpty() && !"ReplaySpell".equals(logic)) {
|
if (!game.getStack().isEmpty() && !"ReplaySpell".equals(logic)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -75,7 +76,7 @@ public class PlayAi extends SpellAbilityAi {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean doTriggerAINoCost(final Player ai, final SpellAbility sa, final boolean mandatory) {
|
protected boolean doTriggerAINoCost(final Player ai, final SpellAbility sa, final boolean mandatory) {
|
||||||
if (sa.usesTargeting()) {
|
if (sa.usesTargeting()) {
|
||||||
if (!sa.hasParam("AILogic")) {
|
if (!sa.hasParam("AILogic")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user