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