mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Implemented target type (50) which excludes players pets from target AE's.
This commit is contained in:
parent
fabe93e548
commit
738fa38047
@ -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 {
|
||||
|
||||
@ -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());
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user