fix(Core/Spells): updates trajectory target selection (#23031)

Co-authored-by: xinef1 <w.szyszko2@gmail.com>
This commit is contained in:
sogladev 2025-09-28 12:47:01 +02:00 committed by GitHub
parent bac2ae4e11
commit 0d1f885b57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 65 additions and 133 deletions

View file

@ -855,6 +855,9 @@ void WorldSession::HandleUpdateProjectilePosition(WorldPacket& recvPacket)
pos.Relocate(x, y, z);
spell->m_targets.ModDst(pos);
// we changed dest, recalculate flight time
spell->RecalculateDelayMomentForDst();
WorldPacket data(SMSG_SET_PROJECTILE_POSITION, 21);
data << casterGuid;
data << uint8(castCount);