It is currently 03 Sep 2025, 13:54
   
Text Size

Regeneration of non-creature permanents

Moderators: FranAvalon, Marek14, CCGHQ Admins

Regeneration of non-creature permanents

Postby travolter » 16 Nov 2012, 20:43

Regenerating non-creature permanents causes exception error.

Thats because CTargetRegenerationSpell::ResolveCard casts CCard to the CCreatureCard pointer.

Code:
CCreatureCard* pCreatureCard = (CCreatureCard*)pCard;
pCreatureCard->AddRegenerationShield();



Affected cards: Welding Jar, Reknit.


The solution can be moving the regeneration code from CCreatureCard to CCard.
travolter
 
Posts: 259
Joined: 26 Mar 2012, 17:56
Has thanked: 6 times
Been thanked: 8 times

Return to Engine Bugs

Who is online

Users browsing this forum: No registered users and 12 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 12 guests

Login Form