mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 19:41:30 +00:00
Fix EVENT_ATTACK crash (thanks image)
Note: I guess we need to check if it's null in the actual quest too
This commit is contained in:
parent
a8ba563632
commit
c2b31bd6e2
@ -1800,7 +1800,7 @@ void NPC::Damage(Mob* other, int32 damage, uint16 spell_id, EQEmu::skills::Skill
|
|||||||
//handle EVENT_ATTACK. Resets after we have not been attacked for 12 seconds
|
//handle EVENT_ATTACK. Resets after we have not been attacked for 12 seconds
|
||||||
if(attacked_timer.Check())
|
if(attacked_timer.Check())
|
||||||
{
|
{
|
||||||
Log.Out(Logs::Detail, Logs::Combat, "Triggering EVENT_ATTACK due to attack by %s", other->GetName());
|
Log.Out(Logs::Detail, Logs::Combat, "Triggering EVENT_ATTACK due to attack by %s", other ? other->GetName() : "nullptr");
|
||||||
parse->EventNPC(EVENT_ATTACK, this, other, "", 0);
|
parse->EventNPC(EVENT_ATTACK, this, other, "", 0);
|
||||||
}
|
}
|
||||||
attacked_timer.Start(CombatEventTimer_expire);
|
attacked_timer.Start(CombatEventTimer_expire);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user