Core/Spells: Allow targeting script hooks to work with TARGET_DEST_DYNOBJ_ENEMY, TARGET_DEST_DYNOBJ_ALLY, TARGET_DEST_DYNOBJ_NONE, TARGET_DEST_DEST

Port From (https://github.com/TrinityCore/TrinityCore/commit/3c0baab57616733ff0e3b94ceb215f9bd78239ea)
This commit is contained in:
hondacrx
2022-01-28 17:19:57 -05:00
parent 13fed278be
commit 26bec9ecb4
+1 -1
View File
@@ -1013,7 +1013,7 @@ namespace Game.Spells
case Targets.DestDynobjAlly:
case Targets.DestDynobjNone:
case Targets.DestDest:
return;
break;
case Targets.DestDestGround:
dest.Position.posZ = m_caster.GetMapHeight(dest.Position.GetPositionX(), dest.Position.GetPositionY(), dest.Position.GetPositionZ());
break;