fix for cumulative upcost, extra cost were not being multiplied
[card]
name=Phyrexian Soulgorger
auto=cumulativeupcost[{S(creature|myBattlefield)}] sacrifice
text=Cumulative upkeep - Sacrifice a creature. (At the beginning of your upkeep, put an age counter on this permanent, then sacrifice it unless you pay its upkeep cost for each age counter on it.)
mana={3}
type=Snow Artifact Creature
subtype=Construct
power=8
toughness=8
[/card]
was only charging you 1 sacrifice per upkeep.
added thisTargetComparison, this(cantargetcard(targetchooser))...its a thisdescriptor that compares if the card can be targeted by a target chooser...
This commit is contained in:
@@ -77,6 +77,7 @@ public:
|
||||
// Extra Costs (sacrifice,counters...)
|
||||
//
|
||||
int addExtraCost(ExtraCost * _cost);
|
||||
int addExtraCosts(ExtraCosts *_cost);
|
||||
int setExtraCostsAction(MTGAbility * action, MTGCardInstance * card);
|
||||
int isExtraPaymentSet();
|
||||
int canPayExtra();
|
||||
|
||||
@@ -25,6 +25,15 @@ public:
|
||||
ThisDescriptor * createThisDescriptor(GameObserver* observer, string s);
|
||||
};
|
||||
|
||||
class ThisTargetCompare:public ThisDescriptor{
|
||||
public:
|
||||
TargetChooser * targetComp;
|
||||
virtual int match(MTGCardInstance * card);
|
||||
ThisTargetCompare(TargetChooser * tcc = NULL);
|
||||
~ThisTargetCompare();
|
||||
ThisTargetCompare * clone() const;
|
||||
};
|
||||
|
||||
class ThisCounter:public ThisDescriptor{
|
||||
public:
|
||||
Counter * counter;
|
||||
|
||||
Reference in New Issue
Block a user