1
0
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:
mateuszb
2009-07-26 12:15:38 +00:00
parent 0d408bc6c2
commit 27dda485a4
5 changed files with 67 additions and 8 deletions

View File

@ -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