[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
by 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?
-
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
Reason: fixed
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
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
by 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.
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.
The latest images for Manalink will be here.
The latest Manalink installation directory will be here. Well, not quite, anymore. Check the latest patches.
The latest Manalink installation directory will be here. Well, not quite, anymore. Check the latest patches.
-
drool66 - Programmer
- Posts: 1185
- Joined: 25 Nov 2010, 22:38
- Has thanked: 187 times
- Been thanked: 280 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 36 guests