update some cards
removed phasedout trigger add phasedoutbonus - ability
This commit is contained in:
@@ -1332,28 +1332,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class TrCardPhasesOut: public Trigger
|
||||
{
|
||||
public:
|
||||
TrCardPhasesOut(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false) :
|
||||
Trigger(observer, id, source, once, tc)
|
||||
{
|
||||
}
|
||||
|
||||
int triggerOnEventImpl(WEvent * event)
|
||||
{
|
||||
WEventCardPhasesOut * e = dynamic_cast<WEventCardPhasesOut *> (event);
|
||||
if (!e) return 0;
|
||||
if (!tc->canTarget(e->card)) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
TrCardPhasesOut * clone() const
|
||||
{
|
||||
return NEW TrCardPhasesOut(*this);
|
||||
}
|
||||
};
|
||||
|
||||
class TrCardPhasesIn: public Trigger
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -77,6 +77,9 @@ public:
|
||||
string CrewAbility;
|
||||
void setCrewAbility(const string& value);
|
||||
const string& getCrewAbility() const;
|
||||
string PhasedOutAbility;
|
||||
void setPhasedOutAbility(const string& value);
|
||||
const string& getPhasedOutAbility() const;
|
||||
|
||||
vector<int>types;
|
||||
CardPrimitive();
|
||||
|
||||
@@ -307,7 +307,7 @@ struct WEventCardControllerChange : public WEventCardUpdate {
|
||||
|
||||
//event when card phases out
|
||||
struct WEventCardPhasesOut : public WEventCardUpdate {
|
||||
WEventCardPhasesOut(MTGCardInstance * card);
|
||||
WEventCardPhasesOut(MTGCardInstance * card, int turn);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user