1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-28 03:57:02 +02:00

Acid breath should have absolute dispel immunity

This commit is contained in:
Dydzio 2019-03-24 17:56:54 +01:00 committed by Alexander Shishkin
parent e1857df4bb
commit df11e851ef

View File

@ -94,9 +94,9 @@ bool Dispel::mainSelector(const Bonus * bonus)
const CSpell * sourceSpell = SpellID(bonus->sid).toSpell(); const CSpell * sourceSpell = SpellID(bonus->sid).toSpell();
if(!sourceSpell) if(!sourceSpell)
return false;//error return false;//error
//Special case: DISRUPTING_RAY is "immune" to dispell //Special case: DISRUPTING_RAY and ACID_BREATH_DEFENSE are "immune" to dispell
//Other even PERMANENT effects can be removed (f.e. BIND) //Other even PERMANENT effects can be removed (f.e. BIND)
if(sourceSpell->id == SpellID::DISRUPTING_RAY) if(sourceSpell->id == SpellID::DISRUPTING_RAY || sourceSpell->id == SpellID::ACID_BREATH_DEFENSE)
return false; return false;
//Special case:do not remove lifetime marker //Special case:do not remove lifetime marker
if(sourceSpell->id == SpellID::CLONE) if(sourceSpell->id == SpellID::CLONE)