From 1cfd1d478a30285251051ae42d0e351c76fa0485 Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Fri, 25 Mar 2016 18:25:54 -0400 Subject: [PATCH] Fix to have better sync server side spell range check to client check. --- zone/mob.h | 2 +- zone/spells.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/mob.h b/zone/mob.h index 0407ecd3a..7083e45ca 100644 --- a/zone/mob.h +++ b/zone/mob.h @@ -563,7 +563,7 @@ public: bool lookForAftArc = true); //Procs - void TriggerDefensiveProcs(Mob *on, uint16 hand = MainPrimary, bool SkillProc=false, int damage = 0); + void TriggerDefensiveProcs(Mob *on, uint16 hand = MainPrimary, bool FromSkillProc=false, int damage = 0); bool AddRangedProc(uint16 spell_id, uint16 iChance = 3, uint16 base_spell_id = SPELL_UNKNOWN); bool RemoveRangedProc(uint16 spell_id, bool bAll = false); bool HasRangedProcs() const; diff --git a/zone/spells.cpp b/zone/spells.cpp index 90efd791f..c386f81bb 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -2011,7 +2011,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16 } //range check our target, if we have one and it is not us - float range = spells[spell_id].range; + float range = spells[spell_id].range + GetRangeDistTargetSizeMod(spell_target); if(IsClient() && CastToClient()->TGB() && IsTGBCompatibleSpell(spell_id) && IsGroupSpell(spell_id)) range = spells[spell_id].aoerange;