mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
* support for spell resistance, including secondary skill (resistance) and new artifacts (Garniture of Interference, Surcoat of Counterpoise, Boots of Polarity) and unit's resistance (such as dwarfs' resistance)
This commit is contained in:
@ -692,10 +692,11 @@ DLL_EXPORT void SpellCast::applyGs( CGameState *gs )
|
||||
{
|
||||
gs->curB->castSpells[side]++;
|
||||
}
|
||||
|
||||
if(gs->curB && id == 35) //dispel
|
||||
{
|
||||
CStack *s = gs->curB->getStackT(tile);
|
||||
if(s)
|
||||
if(s && !vstd::contains(resisted, s->ID)) //if stack exists and it didn't resist
|
||||
{
|
||||
s->effects.clear(); //removing all effects
|
||||
//removing all features from spells
|
||||
|
Reference in New Issue
Block a user