Implemented target type (50) which excludes players pets from target AE's.

This commit is contained in:
KayenEQ
2014-11-13 02:46:22 -05:00
parent fabe93e548
commit 738fa38047
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -764,6 +764,8 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_
continue;
if (curmob == caster && !affect_caster) //watch for caster too
continue;
if (spells[spell_id].targettype == ST_TargetAENoPlayersPets && curmob->IsPetOwnerClient())
continue;
if (spells[spell_id].targettype == ST_Ring) {
dist_targ = curmob->DistNoRoot(caster->GetTargetRingX(), caster->GetTargetRingY(), caster->GetTargetRingZ());