It is currently 07 Jul 2021, 08:13
   
Text Size

Mana replacement (-> Any)

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Mana replacement (-> Any)

Postby moomarc » 31 Mar 2014, 13:05

There's a small bug with Pulse of Llanower (or any card that replaces mana with "Any"), where if you try produce the mana while paying for an ability/spell you are prompted twice with which mana you want to replace the default type. This does not apply when generating the mana before playing an ability/spell, so for some reason the replacement is run twice during a cost payment. This becomes especially noticeable when using Harvest Mage and any land that produces more than 1 mana (HM is scriptable with a minor tweak to the code). I'll commit the change and Harvest Mage script, but if we can't resolve the issue it should probably be removed before the next beta.

Edit: I think it's because AbilityManaPart.canProduce(String,SpellAbility) calls the applyManaReplacement which makes the user choose a replacement colour. I'm not sure how to fix it though.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 10 guests


Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 10 guests

Login Form