mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Create hate on immune to fear due to level
This commit is contained in:
parent
0e8f7a4542
commit
1bf794c29f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user