mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-04 07:02:18 +00:00
Create hate on immune to fear due to level
This commit is contained in:
1 parent
0e8f7a4542
commit
1bf794c29f
1 file changed
+6
@@ -3940,6 +3940,12 @@ bool Mob::IsImmuneToSpell(uint16 spell_id, Mob *caster)
|
|||||||
{
|
{
|
||||||
mlog(SPELLS__RESISTS, "Level is %d, cannot be feared by this spell.", GetLevel());
|
mlog(SPELLS__RESISTS, "Level is %d, cannot be feared by this spell.", GetLevel());
|
||||||
caster->Message_StringID(MT_Shout, FEAR_TOO_HIGH);
|
caster->Message_StringID(MT_Shout, FEAR_TOO_HIGH);
|
||||||
|
int32 aggro = caster->CheckAggroAmount(spell_id);
|
||||||
|
if (aggro > 0) {
|
||||||
|
AddToHateList(caster, aggro);
|
||||||
|
} else {
|
||||||
|
AddToHateList(caster, 1);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user