Cycling, Flashback and Morph keyword "patch"
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Cycling, Flashback and Morph keyword "patch"
by Rob Cashwalker » 09 Jul 2009, 03:19
It's been pointed out that Cycling as a keyword doesn't work on all spells. That's because Cycling was defined near the very beginning of CardFactory. Many cards clear their SpellAbility list as part of their code definition. Since those parts of the code are processed after Cycling had been added, the Cyling ability was ending up removed.
Simple solution - move Cycling, Flashback and Morph (and any generic ability that gets tacked on after the main spell) either at the end of CardFactory, or at least to the end of our keyword scripts. Explicitly coded cards likely have those abilities coded already, and don't need to rely on keyword scripts.
Simple solution - move Cycling, Flashback and Morph (and any generic ability that gets tacked on after the main spell) either at the end of CardFactory, or at least to the end of our keyword scripts. Explicitly coded cards likely have those abilities coded already, and don't need to rely on keyword scripts.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 74 guests