Trap auras should spawn a bit in front

This commit is contained in:
Michael Cook (mackal) 2018-03-07 15:23:03 -05:00
parent 8f66527e02
commit 0d63c8b9ef

View File

@ -758,6 +758,8 @@ void Mob::MakeAura(uint16 spell_id)
auto npc = new Aura(npc_type, this, record); auto npc = new Aura(npc_type, this, record);
npc->SetAuraID(spell_id); npc->SetAuraID(spell_id);
if (trap)
npc->TryMoveAlong(5.0f, 0.0f, false); // try to place 5 units in front
entity_list.AddNPC(npc, false); entity_list.AddNPC(npc, false);
if (trap) if (trap)