Set activating player when evaluating mana producing permanent by AI, to avoid warnings being printed.

This commit is contained in:
Myrd
2015-02-14 16:20:28 +00:00
parent 7006d85d25
commit 4a97f483f8

View File

@@ -88,6 +88,7 @@ public class ComputerUtilMana {
score = 0; score = 0;
for (SpellAbility ability : card.getSpellAbilities()) { for (SpellAbility ability : card.getSpellAbilities()) {
ability.setActivatingPlayer(card.getController());
if (ability.isManaAbility()) { if (ability.isManaAbility()) {
if (ability.getManaPart() == null) { if (ability.getManaPart() == null) {
score++; //Assume a mana ability can generate at least 1 mana if the amount of mana can't be determined now. score++; //Assume a mana ability can generate at least 1 mana if the amount of mana can't be determined now.