- Mark "equipment" abilities as good for AI (used for MotD)

This commit is contained in:
wagic.the.homebrew
2011-09-23 10:54:01 +00:00
parent fe88b747c0
commit eb13d9a0f9
+4
View File
@@ -2438,6 +2438,10 @@ int AbilityFactory::abilityEfficiency(MTGAbility * a, Player * p, int mode, Targ
if (dynamic_cast<AManaProducer *> (a))
return BAKA_EFFECT_GOOD;
// Equipment that gets immediately attached. Todo: check the abilities associated with Equip, to make sure they're good (for now it seems to be the majority of the cases)?
if (dynamic_cast<AEquip *> (a))
return BAKA_EFFECT_GOOD;
// For now, ACounterTracker is only used for Creatures that "belong" to one of our domains, need to target one of our own lands, so we return a "positive" value
if (ACounterTracker * act = dynamic_cast<ACounterTracker *>(a))
return BAKA_EFFECT_GOOD;