- Fixed chooseAndPlaySa not setting activating player.

This commit is contained in:
Sloth
2013-04-02 21:55:19 +00:00
parent 1f9e4b07e3
commit d725eda5bc

View File

@@ -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)) {