mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-02 18:32:25 +00:00
Don't need the center check anymore
This commit is contained in:
parent
83605831ec
commit
d11e2410bf
@ -730,8 +730,6 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_
|
|||||||
// test to fix possible cause of random zone crashes..external methods accessing client properties before they're initialized
|
// test to fix possible cause of random zone crashes..external methods accessing client properties before they're initialized
|
||||||
if (curmob->IsClient() && !curmob->CastToClient()->ClientFinishedLoading())
|
if (curmob->IsClient() && !curmob->CastToClient()->ClientFinishedLoading())
|
||||||
continue;
|
continue;
|
||||||
if (curmob == center) //do not affect center
|
|
||||||
continue;
|
|
||||||
if (curmob == caster && !affect_caster) //watch for caster too
|
if (curmob == caster && !affect_caster) //watch for caster too
|
||||||
continue;
|
continue;
|
||||||
if (spells[spell_id].targettype == ST_TargetAENoPlayersPets && curmob->IsPetOwnerClient())
|
if (spells[spell_id].targettype == ST_TargetAENoPlayersPets && curmob->IsPetOwnerClient())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user