Bug Correction

PermanentAbility to ListMaintainerAbility in Legend Rule, it seems It's
finally fixed even with a lot of targetchooser and copy effects.
This commit is contained in:
Anthony Calosa
2017-02-02 09:58:38 +08:00
parent 80b6496780
commit c265ce8222
3 changed files with 62 additions and 49 deletions

View File

@@ -427,7 +427,7 @@ public:
* that player chooses one of them, and the rest are put into their owners graveyards.
* This is called the “legend rule.”
*/
class MTGLegendRule: public PermanentAbility
class MTGLegendRule: public ListMaintainerAbility
{
public:
TargetChooser * tcL;
@@ -435,7 +435,10 @@ public:
MTGAbility * LegendruleAbility;
MTGAbility * LegendruleGeneric;
MTGLegendRule(GameObserver* observer, int _id);
int receiveEvent(WEvent * event);
int canBeInList(MTGCardInstance * card);
int added(MTGCardInstance * card);
int removed(MTGCardInstance * card);
int testDestroy();
virtual ostream& toString(ostream& out) const;
virtual MTGLegendRule * clone() const;
};