Skip to content

Commit 9426014

Browse files
author
Github Actions
committed
Merge 3.3.5-base_patch to 3.3.5-racial-trait
2 parents abe9297 + 50997e0 commit 9426014

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
@@ -10015,13 +10015,13 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1001510015
for (uint8 i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_ITEM_END; ++i)
1001610016
{
1001710017
pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10018-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10018+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1001910019
return true;
1002010020
}
1002110021
for (uint8 i = KEYRING_SLOT_START; i < CURRENCYTOKEN_SLOT_END; ++i)
1002210022
{
1002310023
pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10024-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10024+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1002510025
return true;
1002610026
}
1002710027
for (uint8 i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
@@ -10031,7 +10031,7 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1003110031
for (uint32 j = 0; j < pBag->GetBagSize(); ++j)
1003210032
{
1003310033
pItem = GetUseableItemByPos(i, j);
10034-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10034+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1003510035
return true;
1003610036
}
1003710037
}
@@ -11848,9 +11848,12 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
1184811848
m_weaponChangeTimer = spellProto->StartRecoveryTime;
1184911849

1185011850
GetSpellHistory()->AddGlobalCooldown(spellProto, m_weaponChangeTimer);
11851-
WorldPacket data;
11852-
GetSpellHistory()->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, cooldownSpell, 0);
11853-
SendDirectMessage(&data);
11851+
11852+
WorldPackets::Spells::SpellCooldown spellCooldown;
11853+
spellCooldown.Caster = GetGUID();
11854+
spellCooldown.Flags = SPELL_COOLDOWN_FLAG_INCLUDE_GCD;
11855+
spellCooldown.SpellCooldowns.emplace_back(cooldownSpell, 0);
11856+
SendDirectMessage(spellCooldown.Write());
1185411857
}
1185511858
}
1185611859
}
@@ -20111,10 +20114,7 @@ void Player::SendAutoRepeatCancel(Unit* target)
2011120114

2011220115
void Player::SendExplorationExperience(uint32 Area, uint32 Experience) const
2011320116
{
20114-
WorldPacket data(SMSG_EXPLORATION_EXPERIENCE, 8);
20115-
data << uint32(Area);
20116-
data << uint32(Experience);
20117-
SendDirectMessage(&data);
20117+
SendDirectMessage(WorldPackets::Misc::ExplorationExperience(Experience, Area).Write());
2011820118
}
2011920119

2012020120
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)