[duplicate]Omniscience Doesn't Function Properly
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
2 posts
• Page 1 of 1
[duplicate]Omniscience Doesn't Function Properly
by Korath » 04 Mar 2016, 20:54
fluxmaster wrote:What Omniscience Currently does:
You can only cast cards if you have enough mana to pay for them and then only reduces the colored part of the cost to 0
What Omniscience should do:
You can cast cards at any time the card is normally castable without needing any mana producers in play. The cost for casting the card is set to 0. Any Spells with X in their cost cast this way set X=0.
I've know how to program and I've been trying to track down how to fix this. I think the main issue is that Omniscience needs to make the function that checks if you can cast a card in your hand skip over the mana requiremnt and then needs to modify the costs correctly. It looks like the costs are modified correctly in true_get_updated_casting_cost() in functions.c on line 7481 where cless-=c->req_colorless; but I think something isn't working right. would cless=0; fix it?
I don't know enough about the code to figure out where the "can you cast it" checker function is, but I'd be willing to fix it myself if I could be pointed in the right direction and told how to compile the code. (Is it just Make.exe?)
Misposted as a Shandalar bug. I haven't investigated at all or even looked for duplicates.fluxmaster wrote:I noticed other cards in the true_get_updated_casting_cost() functions actually weren't using that function anymore and instead were using
COLOR_BLACK--;
and similar. Would something like the following work to replace null_casting_cost()?
COST_WHITE = 0;
COST_BLUE = 0;
COST_BLACK = 0;
COST_RED = 0;
COST_GREEN = 0;
COST_COLORLESS=0;
Last edited by BAgate on 05 Mar 2016, 00:01, edited 1 time in total.
Reason: duplicate
Reason: duplicate
-
Korath - DEVELOPER
- Posts: 3708
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1108 times
Re: Omniscience Doesn't Function Properly
by Nexhro » 04 Mar 2016, 22:15
In Manalink, the player does not have to have mana equal to the original cost available.
The other half of the bug reported here indeed is a dupe.
The other half of the bug reported here indeed is a dupe.
-
Nexhro - Posts: 1613
- Joined: 23 Jan 2014, 18:08
- Location: HRO, UTC +1
- Has thanked: 78 times
- Been thanked: 103 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 23 guests