mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38: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 */
|
/** 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) {
|
public SpellAbility chooseAndPlaySa(final List<SpellAbility> choices, boolean mandatory, boolean withoutPayingManaCost) {
|
||||||
for (final SpellAbility sa : choices) {
|
for (final SpellAbility sa : choices) {
|
||||||
|
sa.setActivatingPlayer(player);
|
||||||
//Spells
|
//Spells
|
||||||
if (sa instanceof Spell) {
|
if (sa instanceof Spell) {
|
||||||
if (!((Spell) sa).canPlayFromEffectAI(mandatory, withoutPayingManaCost)) {
|
if (!((Spell) sa).canPlayFromEffectAI(mandatory, withoutPayingManaCost)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user