It is currently 12 May 2025, 09:10
   
Text Size

[fix] X spells with 2 sides charge +generic mana of 1st side

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

[fix] X spells with 2 sides charge +generic mana of 1st side

Postby Aswan jaguar » 24 Oct 2020, 13:30

Describe the Bug:
Cut // Ribbons (just coded) it has a bug that it asks for 1 more mana to pay for aftermath. This is a general issue for x spells with two sides
if the first non X mana side has a generic cost then you get prompt to pay
the same amount of generic for second + it's normal cost. This happens when using the method of applying first general mana and then X mana. Which is wrong and causes also other bugs. See previous post.
Crime // Punishment for instance will prompt for extra 3 generic mana for punishment.
Which card did behave improperly?
X spells with two sides that have generic mana in the first side.

Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)
current dev - duel

What exactly should be the correct behavior/interaction?
Pay the mana the card says in it's other side.

Are any other cards possibly affected by this bug?
-
Last edited by drool66 on 31 Dec 2020, 06:02, edited 1 time in total.
Reason: fixed
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8129
Joined: 13 May 2010, 12:17
Has thanked: 748 times
Been thanked: 477 times

Re: X spells with two sides charge +generic mana of 1st side

Postby drool66 » 31 Dec 2020, 06:02

Fixed in 9d512af

Done by subtracting cards_ptr[get_id(player, card)]->req_colorless from get_updated_casting_cost() for the second side. get_updated_casting_cost() includes the colorless requirement for the first side, so that gets added on to the cost of the second side when calling it for player, card.
User avatar
drool66
Programmer
 
Posts: 1185
Joined: 25 Nov 2010, 22:38
Has thanked: 187 times
Been thanked: 280 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 36 guests


Who is online

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

Login Form