added auraward, added event for unattach, added statebased check for protection from quality
auraward -> an exception for protection from quality used for aura, like flickering ward added event for unattach added state based check for protection from quality. 702.16c A permanent or player with protection can’t be enchanted by Auras that have the stated quality. Such Auras attached to the permanent or player with protection will be put into their owners’ graveyards as a state-based action. 702.16d A permanent with protection can’t be equipped by Equipment that have the stated quality or fortified by Fortifications that have the stated quality. Such Equipment or Fortifications become unattached from that permanent as a state-based action, but remain on the battlefield.
This commit is contained in:
@@ -229,7 +229,8 @@ class Constants
|
||||
SPELLMASTERY = 111,
|
||||
NOLIFEGAIN = 112,
|
||||
NOLIFEGAINOPPONENT = 113,
|
||||
NB_BASIC_ABILITIES = 114,
|
||||
AURAWARD = 114,
|
||||
NB_BASIC_ABILITIES = 115,
|
||||
|
||||
|
||||
RARITY_S = 'S', //Special Rarity
|
||||
|
||||
@@ -273,6 +273,12 @@ struct WEventEmptyManaPool : public WEvent {
|
||||
WEventEmptyManaPool(ManaPool * source);
|
||||
};
|
||||
|
||||
//event when card-equipment unattached
|
||||
struct WEventCardUnattached : public WEventCardUpdate {
|
||||
WEventCardUnattached(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream&, const WEvent&);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user