fixed gravetitan bug reported, added new keyword "retarget" as another support for newtarget...

reworked the handling of new target...auras and equipments can not be treated the same...doing so allowed the player to then use the equip function of the card and gain a double bonus. now i call directly on the equip function to do the equiping so that it works with its own function to add the effects. keeping a person from gaining double bonus.
This commit is contained in:
omegablast2002@yahoo.com
2011-01-29 21:58:29 +00:00
parent ed93646785
commit 853b8ea5c6
3 changed files with 53 additions and 15 deletions
+14 -6
View File
@@ -2581,17 +2581,25 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
a->oneShot = 1;
return a;
}
//get a new target
found = s.find("newtarget");
//get a new target
found = s.find("retarget");
if (found != string::npos)
{
MTGAbility * a = NEW AANewTarget(id, card, target);
MTGAbility * a = NEW AANewTarget(id, card,target,true);
a->oneShot = 1;
return a;
}
//morph
//get a new target
found = s.find("newtarget");
if (found != string::npos)
{
MTGAbility * a = NEW AANewTarget(id, card, target,false);
a->oneShot = 1;
return a;
}
//morph
found = s.find("morph");
if (found != string::npos)
{