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:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user