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:
@@ -427,7 +427,7 @@ public:
|
||||
bool sourceUntapped;
|
||||
bool opponentPoisoned;
|
||||
TrCardAttacked(int id, MTGCardInstance * source, TargetChooser * tc,bool sourceUntapped,bool opponentPoisoned) :
|
||||
TriggeredAbility(id, source), tc(tc), sourceUntapped(sourceUntapped)
|
||||
TriggeredAbility(id, source), tc(tc), sourceUntapped(sourceUntapped),opponentPoisoned(opponentPoisoned)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -3414,7 +3414,8 @@ public:
|
||||
class AANewTarget: public ActivatedAbility
|
||||
{
|
||||
public:
|
||||
AANewTarget(int id, MTGCardInstance * card, MTGCardInstance * _target, ManaCost * _cost = NULL, int doTap = 0);
|
||||
bool retarget;
|
||||
AANewTarget(int id, MTGCardInstance * card, MTGCardInstance * _target,bool retarget = false, ManaCost * _cost = NULL, int doTap = 0);
|
||||
int resolve();
|
||||
const char * getMenuText();
|
||||
AANewTarget * clone() const;
|
||||
|
||||
Reference in New Issue
Block a user