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());
|
dist *= float(rand_norm());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (targetType.GetTarget() == TARGET_DEST_TARGET_BACK)
|
||||||
|
{
|
||||||
|
dist += target->GetFloatValue(UNIT_FIELD_BOUNDINGRADIUS);
|
||||||
|
}
|
||||||
|
|
||||||
Position pos = dest._position;
|
Position pos = dest._position;
|
||||||
target->MovePositionToFirstCollision(pos, dist, angle);
|
target->MovePositionToFirstCollision(pos, dist, angle);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user