diff options
author | Jeremy <Golrag@users.noreply.github.com> | 2019-04-07 20:15:40 +0200 |
---|---|---|
committer | Giacomo Pozzoni <giacomopoz@gmail.com> | 2019-04-07 20:15:40 +0200 |
commit | 9fcbd8f15d249070aabc25d48df86681e8ec3d11 (patch) | |
tree | 33b077329695d07b6592e47b0d8aeb3a5c58a72d /src/server/game/Spells/Spell.cpp | |
parent | 73e3fdc8b4545cca52b66032a5f2465183d14c71 (diff) |
Core/Movement: Fix some undermap issues with random movement/fear/blink (#22937)
* Core/Movement:
- Only move to point if there is a path that is not a shortcut (which will make the unit move through terrain)
- Added new function to check if there is a vmap floor without search distance
- Units that can fly, are underground but far above the vmap floor will stay underground (bronze drakes in tanaris)
- Don't remove PATHFIND_SHORTCUT from path type in some cases
* Core/Object: Ignore UpdateAllowedPositionZ for flying units.
- This will make flying units go through mountains instead of going to the top and back to the bottom to reach you.
* Core/Object: Revert some changes and let MovePositionToFirstCollision deal with a position without ground
* Missing groundZ change for objects on transport
* use CanFly instead of IsFlying
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 3e0a5e0d988..a0f35b48b29 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -1370,9 +1370,8 @@ void Spell::SelectImplicitCasterDestTargets(SpellEffIndex effIndex, SpellImplici pos.m_positionX = m_preGeneratedPath->GetActualEndPosition().x; pos.m_positionY = m_preGeneratedPath->GetActualEndPosition().y; pos.m_positionZ = m_preGeneratedPath->GetActualEndPosition().z; + dest.Relocate(pos); } - - dest.Relocate(pos); break; } default: |