Changes so that blind effects like those in Flash of Light work.

This commit is contained in:
Paul Coene
2014-09-27 13:00:07 -04:00
parent 1170b57fd5
commit 73a23e9f9d
5 changed files with 16 additions and 5 deletions
+5 -2
View File
@@ -1267,8 +1267,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
#endif
if (spells[spell_id].base[i] == 1)
BuffFadeByEffect(SE_Blind);
// handled by client
// TODO: blind flag?
is_blind = true;
break;
}
@@ -3976,6 +3975,10 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
break;
}
case SE_Blind:
is_blind = false;
break;
case SE_Fear:
{
if(RuleB(Combat, EnableFearPathing)){