diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-12-29 13:43:07 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-29 13:43:07 +0100 |
commit | 88cf53e54a4cda8fa8f1e3ef8b0766b5e6ac8c27 (patch) | |
tree | 4f486f824d897cf4cbd29eb038614bfb7cf8ea0c /src/server/game/Spells/Spell.cpp | |
parent | 8921d07201addf661db1642e507034a24fdfa3de (diff) |
Core/Spells: Implemented target 62 TARGET_DEST_CASTER_GROUND (the same as target 125)
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 4f2ee7cafe9..29d691ae215 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -1421,7 +1421,8 @@ void Spell::SelectImplicitCasterDestTargets(SpellEffectInfo const& spellEffectIn break; } case TARGET_DEST_CASTER_GROUND: - m_caster->UpdateAllowedPositionZ(dest._position.GetPositionX(), dest._position.GetPositionY(), dest._position.m_positionZ); + case TARGET_DEST_CASTER_GROUND_2: + dest._position.m_positionZ = m_caster->GetMapWaterOrGroundLevel(dest._position.GetPositionX(), dest._position.GetPositionY(), dest._position.GetPositionZ()); break; case TARGET_DEST_SUMMONER: if (Unit const* unitCaster = m_caster->ToUnit()) |