Skip to content

Commit

Permalink
Core/Spells: fix spell cast on damagable gameobjects Author: LiMCrosS C…
Browse files Browse the repository at this point in the history
…loses #5810 Closes #5625
  • Loading branch information
Star-lion committed Apr 3, 2013
1 parent c02ec5c commit b44f7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Spells/Spell.cpp
Expand Up @@ -7392,7 +7392,7 @@ WorldObjectSpellAreaTargetCheck::WorldObjectSpellAreaTargetCheck(float range, Po


bool WorldObjectSpellAreaTargetCheck::operator()(WorldObject* target) bool WorldObjectSpellAreaTargetCheck::operator()(WorldObject* target)
{ {
if (!target->IsWithinDist3d(_position, _range)) if (!target->IsWithinDist3d(_position, _range) && !(target->ToGameObject() && target->ToGameObject()->IsInRange(_position->GetPositionX(), _position->GetPositionY(), _position->GetPositionZ(), _range)))
return false; return false;
return WorldObjectSpellTargetCheck::operator ()(target); return WorldObjectSpellTargetCheck::operator ()(target);
} }
Expand Down

0 comments on commit b44f7cd

Please sign in to comment.