changed This(equip) to ThisAttacked(gear) and changed varible name also, there was a discovered conflict using these as equip, with the MTGAbility equip

This commit is contained in:
omegablast2002@yahoo.com
2010-10-21 20:48:39 +00:00
parent ab0de05033
commit 5e34cce734
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ public:
intValue = computeX(spell,card);
}else if (s == "xx" || s == "XX"){
intValue = computeXX(spell,card);
}else if (s == "equips"){
}else if (s == "gear"){
intValue = target->equipment;
}else if (s == "manacost"){
intValue = target->getManaCost()->getConvertedCost();

View File

@@ -127,7 +127,7 @@ ThisDescriptor * ThisDescriptorFactory::createThisDescriptor(string s){
}
//equips
found = s.find("equip");
found = s.find("gear");//still same meaning, better wording to word conflict with MTGAbility equip.
if (found != string::npos) {
ThisEquip * td = NEW ThisEquip(criterion);
if (td) {