It is currently 25 Apr 2024, 04:24
   
Text Size

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"

Postby 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.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 74 guests


Who is online

In total there are 74 users online :: 0 registered, 0 hidden and 74 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 74 guests

Login Form