It is currently 26 Apr 2024, 05:03
   
Text Size

Mana replacement (-> Any)

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, 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 92 guests


Who is online

In total there are 92 users online :: 0 registered, 0 hidden and 92 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 92 guests

Login Form