From e8b8079ef6cbbcc8afcb506afb70da312d5f7ae5 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Wed, 20 Jul 2011 17:17:52 +0000 Subject: [PATCH] fixed a bug where you could equip opponents creatures with your equipment, it is quite possible that we have *always* been able too but no one has actually tried. anyways "myBattlefield" does not compare to "mybattlefield"... i seriously think we devs should consider making all ability coding required lowercase. not card names and text, but coding such as targetchoosers "thisForEach(creature[Black;White]|myBattlefield) moveto(myGraveYard) ...<---this is not uniform...and leads to people using such coding in the source ....i think i suggested this once and was instantly shot down...however, this is the 2nd instance where a bug has arose from the comparing of capitalized vs lower case..becuase we all assume that every line is going to be dropped to lower case as the game reads them..... --- projects/mtg/src/MTGAbility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index a875ac090..7d832368d 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -858,7 +858,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG if (!tc) { TargetChooserFactory tcf; - tc = tcf.createTargetChooser("creature|myBattlefield", card); + tc = tcf.createTargetChooser("creature|mybattlefield", card); } ae->tc = tc; return ae;