Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Programming Talk



Slight cascade mod
Moderator: CCGHQ Admins
Slight cascade mod
by Eglin » 09 Mar 2012, 02:05
Howdy folks,
It seems that the very easy-to-use cascade routine built into 2012 has a little issue. It works fine when the only cascade cards you have all cost the same amount of mana to cast, but when you start mixing things up you find that cards aren't cascading into each other like they should. I suspect that the PlayFreeFromAnywhere routine reduces a spells effective converted casting cost to zero. I also suspect that changing the "local objectCMC = Object():GetConvertedManaCost()" line in the cascade routine to a hard-coded value will remedy the issue.
Cheers,
Eglin
It seems that the very easy-to-use cascade routine built into 2012 has a little issue. It works fine when the only cascade cards you have all cost the same amount of mana to cast, but when you start mixing things up you find that cards aren't cascading into each other like they should. I suspect that the PlayFreeFromAnywhere routine reduces a spells effective converted casting cost to zero. I also suspect that changing the "local objectCMC = Object():GetConvertedManaCost()" line in the cascade routine to a hard-coded value will remedy the issue.
Cheers,
Eglin
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 24 guests