Problem with Rhys the Redeemed (Crashing)

I am having a problem with a new deck I have created and am testing out. When I have Rhys the Redeemed in play and have been using the abilities then after a while the game will crash, I believe it is an issue with too much in play after a while, but I'm not 100% sure so if someone else could test either my Rhys the Redeemed or the theory that having too much in play makes the game crash I would appreciate it.
My test deck (land determined automatically other than Wirewood Lodge):
And my code for Rhys the Redeemed:
If need be I can also post the code for all the other cards (that I made) as well.
Edit: I just finished a test where I played Rhys the Redeemed and used both abilities while keeping the token count below 100 and I played till I had 0 cards in my library with no crash so I think my theory about having too many tokens/objects on the field may be correct.
Edit 2: I have attached all the cards (including the 1/1 G/W Elf Warrior token which I forgot to include above) and the deck packaged in a zip (not wadded for easy examination/modification) just in case there is some issue with one of the other cards causing the problem (which I doubt, but just in case). It should also make it easier for people to re-produce my problem (the crash).
My test deck (land determined automatically other than Wirewood Lodge):
- Devoted Druid x4
- Elvish Promenade x2
- Ezuri, Renegade Leader
- Fyndhorn Elves x4
- Gilt-Leaf Archdruid x2
- Heedless One x2
- Immaculate Magistrate x3
- Imperious Perfect x2
- Jagged-Scar Archers x2
- Joraga Warcaller x4
- Llanowar Elves x4
- Nullmage Shepherd x2
- Rhys the Redeemed x2
- Wellwisher x2
- Wilt-Leaf Liege x2
- Wirewood Lodge x2
And my code for Rhys the Redeemed:
- Code: Select all
<?xml version='1.0'?>
<CARD_V2>
<FILENAME text="RHYS_THE_REDEEMED_147393" />
<CARDNAME text="RHYS_THE_REDEEMED" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Rhys the Redeemed]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Rhys l'Affranchi]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Rhys el redimido]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Rhys der Rehabilitierte]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Rhys il Redento]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[贖われし者、ライズ]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Rhys the Redeemed]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Риз Возвращенный]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Rhys, o Redimido]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="147393" />
<ARTID value="RSN147393" />
<ARTIST name="Steve Prescott" />
<CASTING_COST cost="{G/W}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whole again in honor and horn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Enfin complet par honneur et par corne.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Nuevamente completo, en honor y en cuernos.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Ehre und Hörner sind wiederhergestellt.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Di nuovo intero, in corna e onore.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[名誉と角を再びすべて取り戻す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whole again in honor and horn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[И вот опять он цел и невредим, почет ему и слава.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Inteiro novamente, honra e chifre.]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<SUPERTYPE metaname="Legendary" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Elf" />
<SUB_TYPE metaname="Warrior" />
<EXPANSION value="SHM" />
<RARITY metaname="R" />
<POWER value="1" />
<TOUGHNESS value="1" />
<TOKEN_REGISTRATION reservation="5" type="TOKEN_ELF_WARRIOR_1_1_GW" />
<ACTIVATED_ABILITY auto_skip="1" filter_zone="ZONE_IN_PLAY">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}{d}, {T}: Put a 1/1 green and white Elf Warrior creature token into play.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{2}{d}, {T} : Mettez en jeu un jeton de créature 1/1 verte et blanche Elfe et Guerrier.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{2}{d}, {T}: Pon en juego una ficha de criatura Guerrero Elfo verde y blanca 1/1.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{2}{d}, {T}: Bringe einen 1/1 grünen und weißen |(Elf, Krieger)|-Kreaturenspielstein ins Spiel.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{2}{d}, {T}: Metti in gioco una pedina creatura Guerriero Elfo 1/1 bianca e verde.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{2}{d}, {T}:緑であり白である1/1のエルフ・戦士・クリーチャー・トークンを1体場に出す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{2}{d}, {T}: Put a 1/1 green and white Elf Warrior creature token into play.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{2}{d}, {T}: положите в игру одну фишку существа 1/1 зеленый и белый Эльф Воин.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{2}{d}, {T}: Coloque em jogo uma ficha de criatura verde e branca 1/1 do tipo Elfo Guerreiro.]]></LOCALISED_TEXT>
<COST type="Mana" cost="{2}{G/W}" />
<COST type="TapSelf" />
<RESOLUTION_TIME_ACTION>
MTG():PutTokensIntoPlay( "TOKEN_ELF_WARRIOR_1_1_GW", 1, EffectController() )
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY filter_zone="ZONE_IN_PLAY">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{4}{d}{d}, {T}: For each creature token you control, put a token into play that's a copy of that creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{4}{d}{d}, {T} : Pour chaque jeton de créature que vous contrôlez, mettez en jeu un jeton qui est une copie de cette créature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{4}{d}{d}, {T}: Por cada ficha de criatura que controles, pon en juego una ficha que es una copia de esa criatura.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{4}{d}{d}, {T}: Bringe für jeden Kreaturenspielstein, den du kontrollierst, einen Spielstein ins Spiel, der eine Kopie dieser Kreatur ist.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{4}{d}{d}, {T}: Per ogni pedina creatura che controlli, metti in gioco una pedina che è una copia di quella creatura.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{4}{d}{d}, {T}:あなたがコントロールするクリーチャー・トークン1体につき、そのクリーチャーのコピーであるトークンを1体場に出す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{4}{d}{d}, {T}: For each creature token you control, put a token into play that's a copy of that creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{4}{d}{d}, {T}: за каждую фишку существа под вашим контролем положите в игру одну фишку, являющуюся копией того существа.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{4}{d}{d}, {T}: Para cada ficha de criatura que você controla, coloque em jogo uma ficha que seja uma cópia daquela criatura.]]></LOCALISED_TEXT>
<COST type="Mana" cost="{4}{G/W}{G/W}" />
<COST type="TapSelf" />
<FILTER>
return CreaturesYouControl() and (FilteredCard():IsToken() ~= 0)
</FILTER>
<RESOLUTION_TIME_ACTION>
if (FilteredCard() ~= nil) then
MTG():PutTokensIntoPlayFromSpec( FilteredCard():GetSpec(), 1, EffectController() )
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
</CARD_V2>
If need be I can also post the code for all the other cards (that I made) as well.
Edit: I just finished a test where I played Rhys the Redeemed and used both abilities while keeping the token count below 100 and I played till I had 0 cards in my library with no crash so I think my theory about having too many tokens/objects on the field may be correct.
Edit 2: I have attached all the cards (including the 1/1 G/W Elf Warrior token which I forgot to include above) and the deck packaged in a zip (not wadded for easy examination/modification) just in case there is some issue with one of the other cards causing the problem (which I doubt, but just in case). It should also make it easier for people to re-produce my problem (the crash).