[11276] In dest. point slection must used in world casting object (not owner of cast affects)

This commit is contained in:
VladimirMangos 2011-03-22 03:21:38 +03:00
parent cb1bb261ea
commit 678cfcea78
2 changed files with 2 additions and 2 deletions

View file

@ -521,7 +521,7 @@ void Spell::FillTargetMap()
case TARGET_RANDOM_NEARBY_DEST:
// triggered spells get dest point from default target set, ignore it
if (!(m_targets.m_targetMask & TARGET_FLAG_DEST_LOCATION) || m_IsTriggeredSpell)
if (WorldObject* castObject = GetAffectiveCasterObject())
if (WorldObject* castObject = GetCastingObject())
m_targets.setDestination(castObject->GetPositionX(), castObject->GetPositionY(), castObject->GetPositionZ());
SetTargetMap(SpellEffectIndex(i), m_spellInfo->EffectImplicitTargetB[i], tmpUnitMap);
break;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11275"
#define REVISION_NR "11276"
#endif // __REVISION_NR_H__