Permalink
Browse files

Core/Spells: fix spell cast on damagable gameobjects Author: LiMCrosS…

… Closes #5810 Closes #5625
  • Loading branch information...
1 parent c02ec5c commit b44f7cdd23bab34114383f2b97a88c32d05efbad @kandera kandera committed Apr 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/game/Spells/Spell.cpp
View
2 src/server/game/Spells/Spell.cpp
@@ -7392,7 +7392,7 @@ WorldObjectSpellAreaTargetCheck::WorldObjectSpellAreaTargetCheck(float range, Po
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 WorldObjectSpellTargetCheck::operator ()(target);
}

0 comments on commit b44f7cd

Please sign in to comment.