Merge pull request #254 from noudess/master

Changes so that blind effects like those in Flash of Light work.
This commit is contained in:
Michael Cook (mackal)
2014-09-29 14:26:51 -04:00
5 changed files with 17 additions and 5 deletions
+6 -2
View File
@@ -1269,8 +1269,8 @@ 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?
else
is_blind = true;
break;
}
@@ -3995,6 +3995,10 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
break;
}
case SE_Blind:
is_blind = false;
break;
case SE_Fear:
{
if(RuleB(Combat, EnableFearPathing)){