mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[11276] In dest. point slection must used in world casting object (not owner of cast affects)
This commit is contained in:
parent
cb1bb261ea
commit
678cfcea78
2 changed files with 2 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ void Spell::FillTargetMap()
|
||||||
case TARGET_RANDOM_NEARBY_DEST:
|
case TARGET_RANDOM_NEARBY_DEST:
|
||||||
// triggered spells get dest point from default target set, ignore it
|
// triggered spells get dest point from default target set, ignore it
|
||||||
if (!(m_targets.m_targetMask & TARGET_FLAG_DEST_LOCATION) || m_IsTriggeredSpell)
|
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());
|
m_targets.setDestination(castObject->GetPositionX(), castObject->GetPositionY(), castObject->GetPositionZ());
|
||||||
SetTargetMap(SpellEffectIndex(i), m_spellInfo->EffectImplicitTargetB[i], tmpUnitMap);
|
SetTargetMap(SpellEffectIndex(i), m_spellInfo->EffectImplicitTargetB[i], tmpUnitMap);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11275"
|
#define REVISION_NR "11276"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue