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);
|
intValue = computeX(spell,card);
|
||||||
}else if (s == "xx" || s == "XX"){
|
}else if (s == "xx" || s == "XX"){
|
||||||
intValue = computeXX(spell,card);
|
intValue = computeXX(spell,card);
|
||||||
}else if (s == "equips"){
|
}else if (s == "gear"){
|
||||||
intValue = target->equipment;
|
intValue = target->equipment;
|
||||||
}else if (s == "manacost"){
|
}else if (s == "manacost"){
|
||||||
intValue = target->getManaCost()->getConvertedCost();
|
intValue = target->getManaCost()->getConvertedCost();
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ ThisDescriptor * ThisDescriptorFactory::createThisDescriptor(string s){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//equips
|
//equips
|
||||||
found = s.find("equip");
|
found = s.find("gear");//still same meaning, better wording to word conflict with MTGAbility equip.
|
||||||
if (found != string::npos) {
|
if (found != string::npos) {
|
||||||
ThisEquip * td = NEW ThisEquip(criterion);
|
ThisEquip * td = NEW ThisEquip(criterion);
|
||||||
if (td) {
|
if (td) {
|
||||||
|
|||||||
Reference in New Issue
Block a user