Core/Spells: Implemented target 138 TARGET_DEST_DEST_GROUND

Port From (https://github.com/TrinityCore/TrinityCore/commit/8029035b80b3f07527affb1cc44350bb78790d28)
This commit is contained in:
hondacrx
2022-01-28 17:19:16 -05:00
parent 300ab632e0
commit 13fed278be
4 changed files with 6 additions and 2 deletions
+3
View File
@@ -1014,6 +1014,9 @@ namespace Game.Spells
case Targets.DestDynobjNone:
case Targets.DestDest:
return;
case Targets.DestDestGround:
dest.Position.posZ = m_caster.GetMapHeight(dest.Position.GetPositionX(), dest.Position.GetPositionY(), dest.Position.GetPositionZ());
break;
default:
{
float angle = targetType.CalcDirectionAngle();