mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 07:32:40 +00:00
Merge pull request #509 from KayenEQ/Development
Fix to have better sync server side spell range check to client check.
This commit is contained in:
commit
03ae89b628
@ -563,7 +563,7 @@ public:
|
|||||||
bool lookForAftArc = true);
|
bool lookForAftArc = true);
|
||||||
|
|
||||||
//Procs
|
//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 AddRangedProc(uint16 spell_id, uint16 iChance = 3, uint16 base_spell_id = SPELL_UNKNOWN);
|
||||||
bool RemoveRangedProc(uint16 spell_id, bool bAll = false);
|
bool RemoveRangedProc(uint16 spell_id, bool bAll = false);
|
||||||
bool HasRangedProcs() const;
|
bool HasRangedProcs() const;
|
||||||
|
|||||||
@ -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
|
//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))
|
if(IsClient() && CastToClient()->TGB() && IsTGBCompatibleSpell(spell_id) && IsGroupSpell(spell_id))
|
||||||
range = spells[spell_id].aoerange;
|
range = spells[spell_id].aoerange;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user