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());
+1
View File
@@ -1614,6 +1614,7 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
case ST_UndeadAE: //should only affect undead...
case ST_TargetAETap:
case ST_AETarget:
case ST_TargetAENoPlayersPets:
{
if(!spell_target)
{