Skip to content

Commit 52737ac

Browse files
author
Github Actions
committed
Merge 3.3.5 to 3.3.5-skip-dk
2 parents f527593 + 9ab2b43 commit 52737ac

38 files changed

Lines changed: 1107 additions & 559 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--
2+
UPDATE `item_template` SET `BuyCount`=5 WHERE `entry` IN (24006,24009);

‎src/server/game/DataStores/DBCStores.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ ContentLevels GetContentLevelsForMapAndZone(uint32 mapid, uint32 zoneId)
753753
}
754754
}
755755

756-
bool IsTotemCategoryCompatiableWith(uint32 itemTotemCategoryId, uint32 requiredTotemCategoryId)
756+
bool IsTotemCategoryCompatibleWith(uint32 itemTotemCategoryId, uint32 requiredTotemCategoryId)
757757
{
758758
if (requiredTotemCategoryId == 0)
759759
return true;

‎src/server/game/DataStores/DBCStores.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ enum ContentLevels : uint8
5555
};
5656
TC_GAME_API ContentLevels GetContentLevelsForMapAndZone(uint32 mapid, uint32 zoneId);
5757

58-
TC_GAME_API bool IsTotemCategoryCompatiableWith(uint32 itemTotemCategoryId, uint32 requiredTotemCategoryId);
58+
TC_GAME_API bool IsTotemCategoryCompatibleWith(uint32 itemTotemCategoryId, uint32 requiredTotemCategoryId);
5959

6060
TC_GAME_API void Zone2MapCoordinates(float &x, float &y, uint32 zone);
6161
TC_GAME_API void Map2ZoneCoordinates(float &x, float &y, uint32 zone);

‎src/server/game/Entities/Player/Player.cpp‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10003,13 +10003,13 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1000310003
for (uint8 i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_ITEM_END; ++i)
1000410004
{
1000510005
pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10006-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10006+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1000710007
return true;
1000810008
}
1000910009
for (uint8 i = KEYRING_SLOT_START; i < CURRENCYTOKEN_SLOT_END; ++i)
1001010010
{
1001110011
pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10012-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10012+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1001310013
return true;
1001410014
}
1001510015
for (uint8 i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
@@ -10019,7 +10019,7 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1001910019
for (uint32 j = 0; j < pBag->GetBagSize(); ++j)
1002010020
{
1002110021
pItem = GetUseableItemByPos(i, j);
10022-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10022+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1002310023
return true;
1002410024
}
1002510025
}
@@ -11836,9 +11836,12 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
1183611836
m_weaponChangeTimer = spellProto->StartRecoveryTime;
1183711837

1183811838
GetSpellHistory()->AddGlobalCooldown(spellProto, m_weaponChangeTimer);
11839-
WorldPacket data;
11840-
GetSpellHistory()->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, cooldownSpell, 0);
11841-
SendDirectMessage(&data);
11839+
11840+
WorldPackets::Spells::SpellCooldown spellCooldown;
11841+
spellCooldown.Caster = GetGUID();
11842+
spellCooldown.Flags = SPELL_COOLDOWN_FLAG_INCLUDE_GCD;
11843+
spellCooldown.SpellCooldowns.emplace_back(cooldownSpell, 0);
11844+
SendDirectMessage(spellCooldown.Write());
1184211845
}
1184311846
}
1184411847
}
@@ -20099,10 +20102,7 @@ void Player::SendAutoRepeatCancel(Unit* target)
2009920102

2010020103
void Player::SendExplorationExperience(uint32 Area, uint32 Experience) const
2010120104
{
20102-
WorldPacket data(SMSG_EXPLORATION_EXPERIENCE, 8);
20103-
data << uint32(Area);
20104-
data << uint32(Experience);
20105-
SendDirectMessage(&data);
20105+
SendDirectMessage(WorldPackets::Misc::ExplorationExperience(Experience, Area).Write());
2010620106
}
2010720107

2010820108
void Player::SendDungeonDifficulty(bool changeCurrentDifficuly, bool changeGroupDifficuly) const

‎src/server/game/Entities/Unit/Unit.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9408,11 +9408,11 @@ void Unit::SetPower(Powers power, uint32 val, bool withPowerUpdate /*= true*/, b
94089408

94099409
if (withPowerUpdate)
94109410
{
9411-
WorldPacket data(SMSG_POWER_UPDATE, 8 + 1 + 4);
9412-
data << GetPackGUID();
9413-
data << uint8(power);
9414-
data << uint32(val);
9415-
SendMessageToSet(&data, GetTypeId() == TYPEID_PLAYER);
9411+
WorldPackets::Combat::PowerUpdate packet;
9412+
packet.Guid = GetGUID();
9413+
packet.Power.PowerType = power;
9414+
packet.Power.Power = val;
9415+
SendMessageToSet(packet.Write(), GetTypeId() == TYPEID_PLAYER);
94169416
}
94179417

94189418
// group update

‎src/server/game/Globals/ObjectMgr.cpp‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6732,10 +6732,8 @@ uint32 ObjectMgr::GetNearestTaxiNode(float x, float y, float z, uint32 mapid, ui
67326732
float dist = 10000;
67336733
uint32 id = 0;
67346734

6735-
for (uint32 i = 1; i < sTaxiNodesStore.GetNumRows(); ++i)
6735+
for (TaxiNodesEntry const* node : sTaxiNodesStore)
67366736
{
6737-
TaxiNodesEntry const* node = sTaxiNodesStore.LookupEntry(i);
6738-
67396737
if (!node || node->ContinentID != mapid || (!node->MountCreatureID[team == ALLIANCE ? 1 : 0] && node->MountCreatureID[0] != 32981)) // dk flight
67406738
continue;
67416739

@@ -6752,14 +6750,14 @@ uint32 ObjectMgr::GetNearestTaxiNode(float x, float y, float z, uint32 mapid, ui
67526750
if (dist2 < dist)
67536751
{
67546752
dist = dist2;
6755-
id = i;
6753+
id = node->ID;
67566754
}
67576755
}
67586756
else
67596757
{
67606758
found = true;
67616759
dist = dist2;
6762-
id = i;
6760+
id = node->ID;
67636761
}
67646762
}
67656763

‎src/server/game/Groups/Group.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ void Group::NeedBeforeGreed(Loot* loot, WorldObject* lootedObject)
13471347

13481348
void Group::MasterLoot(Loot* loot, WorldObject* pLootedObject)
13491349
{
1350-
TC_LOG_DEBUG("network", "Group::MasterLoot (SMSG_LOOT_MASTER_LIST)");
1350+
TC_LOG_DEBUG("network", "Group::MasterLoot (SMSG_MASTER_LOOT_CANDIDATE_LIST)");
13511351

13521352
for (std::vector<LootItem>::iterator i = loot->items.begin(); i != loot->items.end(); ++i)
13531353
{

0 commit comments

Comments
 (0)