It is currently 05 Jul 2025, 06:55
   
Text Size

[duplicate]Omniscience Doesn't Function Properly

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

[duplicate]Omniscience Doesn't Function Properly

Postby 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?)
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;
Misposted as a Shandalar bug. I haven't investigated at all or even looked for duplicates.
Last edited by BAgate on 05 Mar 2016, 00:01, edited 1 time in total.
Reason: duplicate
User avatar
Korath
DEVELOPER
 
Posts: 3708
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1108 times

Re: Omniscience Doesn't Function Properly

Postby 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.
User avatar
Nexhro
 
Posts: 1613
Joined: 23 Jan 2014, 18:08
Location: HRO, UTC +1
Has thanked: 78 times
Been thanked: 103 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 23 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 10 minutes)
Most users ever online was 5050 on 26 Jun 2025, 06:02

Users browsing this forum: No registered users and 23 guests

Login Form