mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Set activating player when evaluating mana producing permanent by AI, to avoid warnings being printed.
This commit is contained in:
@@ -88,6 +88,7 @@ public class ComputerUtilMana {
|
||||
score = 0;
|
||||
|
||||
for (SpellAbility ability : card.getSpellAbilities()) {
|
||||
ability.setActivatingPlayer(card.getController());
|
||||
if (ability.isManaAbility()) {
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user