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

View File

@ -135,6 +135,9 @@ typedef enum {
/* 45 */ ST_Ring = 0x2d,
/* 46 */ ST_TargetsTarget = 0x2e, // uses the target of your target
/* 47 */ ST_PetMaster = 0x2f, // uses the master as target
/* 48 */ // UNKNOWN
/* 49 */ // NOT USED
/* 50 */ ST_TargetAENoPlayersPets = 0x32,
} SpellTargetType;
typedef enum {

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());

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)
{