mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 17:13:47 +00:00
Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -1550,6 +1550,10 @@ void Player::UpdateVisibilityForPlayer(bool mapChange)
|
||||
|
||||
void Player::UpdateObjectVisibility(bool forced, bool fromUpdate)
|
||||
{
|
||||
// Prevent updating visibility if player is not in world (example: LoadFromDB sets drunkstate which updates invisibility while player is not in map)
|
||||
if (!IsInWorld())
|
||||
return;
|
||||
|
||||
if (!forced)
|
||||
AddToNotify(NOTIFY_VISIBILITY_CHANGED);
|
||||
else if (!isBeingLoaded())
|
||||
|
||||
@@ -764,7 +764,7 @@ void WorldSession::HandleMoveKnockBackAck(WorldPacket& recvData)
|
||||
WorldPacket data(MSG_MOVE_KNOCK_BACK, 66);
|
||||
data << guid.WriteAsPacked();
|
||||
_player->m_mover->BuildMovementPacket(&data);
|
||||
|
||||
_player->SetCanTeleport(true);
|
||||
// knockback specific info
|
||||
data << movementInfo.jump.sinAngle;
|
||||
data << movementInfo.jump.cosAngle;
|
||||
|
||||
@@ -4270,6 +4270,12 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
spellInfo->DurationEntry = sSpellDurationStore.LookupEntry(21);
|
||||
});
|
||||
|
||||
// Jokkum Summon
|
||||
ApplySpellFix({ 56541 }, [](SpellInfo* spellInfo)
|
||||
{
|
||||
spellInfo->Effects[EFFECT_0].MiscValueB = 844;
|
||||
});
|
||||
|
||||
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
|
||||
{
|
||||
SpellInfo* spellInfo = mSpellInfoMap[i];
|
||||
|
||||
Reference in New Issue
Block a user