mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed canPlayFromEffectAI withOutManaCost.
This commit is contained in:
@@ -59,8 +59,9 @@ public class SpellApiBased extends Spell {
|
|||||||
boolean chance = false;
|
boolean chance = false;
|
||||||
if (withOutManaCost) {
|
if (withOutManaCost) {
|
||||||
chance = ai.doTriggerNoCostWithSubs(this.getActivatingPlayer(), this, mandatory);
|
chance = ai.doTriggerNoCostWithSubs(this.getActivatingPlayer(), this, mandatory);
|
||||||
|
} else {
|
||||||
|
chance = ai.doTriggerAI(this.getActivatingPlayer(), this, mandatory);
|
||||||
}
|
}
|
||||||
chance = ai.doTriggerAI(this.getActivatingPlayer(), this, mandatory);
|
|
||||||
return chance && super.canPlayAI();
|
return chance && super.canPlayAI();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user