From eb13d9a0f92ea745540a8571e767bff3390c34d7 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Fri, 23 Sep 2011 10:54:01 +0000 Subject: [PATCH] - Mark "equipment" abilities as good for AI (used for MotD) --- projects/mtg/src/MTGAbility.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 984bc3236..666739b60 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -2438,6 +2438,10 @@ int AbilityFactory::abilityEfficiency(MTGAbility * a, Player * p, int mode, Targ if (dynamic_cast (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 (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(a)) return BAKA_EFFECT_GOOD;