mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
fix(Core/Spells): correct teleport distance for Shadowstep/Killing Spree/Warp (#10081)
- Closes #9345
This commit is contained in:
@@ -1489,6 +1489,11 @@ void Spell::SelectImplicitTargetDestTargets(SpellEffIndex effIndex, SpellImplici
|
||||
dist *= float(rand_norm());
|
||||
}
|
||||
|
||||
if (targetType.GetTarget() == TARGET_DEST_TARGET_BACK)
|
||||
{
|
||||
dist += target->GetFloatValue(UNIT_FIELD_BOUNDINGRADIUS);
|
||||
}
|
||||
|
||||
Position pos = dest._position;
|
||||
target->MovePositionToFirstCollision(pos, dist, angle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user