mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed chooseAndPlaySa not setting activating player.
This commit is contained in:
@@ -750,6 +750,7 @@ public class AiController {
|
||||
/** Returns the spell ability which has already been played - use it for reference only */
|
||||
public SpellAbility chooseAndPlaySa(final List<SpellAbility> choices, boolean mandatory, boolean withoutPayingManaCost) {
|
||||
for (final SpellAbility sa : choices) {
|
||||
sa.setActivatingPlayer(player);
|
||||
//Spells
|
||||
if (sa instanceof Spell) {
|
||||
if (!((Spell) sa).canPlayFromEffectAI(mandatory, withoutPayingManaCost)) {
|
||||
|
||||
Reference in New Issue
Block a user