Skip to content

Commit e1c8af7

Browse files
author
Github Actions
committed
Merge 3.3.5-base_patch to 3.3.5-passive_anticheat
2 parents b044f16 + 50997e0 commit e1c8af7

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
@@ -10023,13 +10023,13 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1002310023
for (uint8 i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_ITEM_END; ++i)
1002410024
{
1002510025
pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10026-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10026+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1002710027
return true;
1002810028
}
1002910029
for (uint8 i = KEYRING_SLOT_START; i < CURRENCYTOKEN_SLOT_END; ++i)
1003010030
{
1003110031
pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10032-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10032+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1003310033
return true;
1003410034
}
1003510035
for (uint8 i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
@@ -10039,7 +10039,7 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1003910039
for (uint32 j = 0; j < pBag->GetBagSize(); ++j)
1004010040
{
1004110041
pItem = GetUseableItemByPos(i, j);
10042-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10042+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1004310043
return true;
1004410044
}
1004510045
}
@@ -11856,9 +11856,12 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
1185611856
m_weaponChangeTimer = spellProto->StartRecoveryTime;
1185711857

1185811858
GetSpellHistory()->AddGlobalCooldown(spellProto, m_weaponChangeTimer);
11859-
WorldPacket data;
11860-
GetSpellHistory()->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, cooldownSpell, 0);
11861-
SendDirectMessage(&data);
11859+
11860+
WorldPackets::Spells::SpellCooldown spellCooldown;
11861+
spellCooldown.Caster = GetGUID();
11862+
spellCooldown.Flags = SPELL_COOLDOWN_FLAG_INCLUDE_GCD;
11863+
spellCooldown.SpellCooldowns.emplace_back(cooldownSpell, 0);
11864+
SendDirectMessage(spellCooldown.Write());
1186211865
}
1186311866
}
1186411867
}
@@ -20125,10 +20128,7 @@ void Player::SendAutoRepeatCancel(Unit* target)
2012520128

2012620129
void Player::SendExplorationExperience(uint32 Area, uint32 Experience) const
2012720130
{
20128-
WorldPacket data(SMSG_EXPLORATION_EXPERIENCE, 8);
20129-
data << uint32(Area);
20130-
data << uint32(Experience);
20131-
SendDirectMessage(&data);
20131+
SendDirectMessage(WorldPackets::Misc::ExplorationExperience(Experience, Area).Write());
2013220132
}
2013320133

2013420134
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
@@ -9410,11 +9410,11 @@ void Unit::SetPower(Powers power, uint32 val, bool withPowerUpdate /*= true*/, b
94109410

94119411
if (withPowerUpdate)
94129412
{
9413-
WorldPacket data(SMSG_POWER_UPDATE, 8 + 1 + 4);
9414-
data << GetPackGUID();
9415-
data << uint8(power);
9416-
data << uint32(val);
9417-
SendMessageToSet(&data, GetTypeId() == TYPEID_PLAYER);
9413+
WorldPackets::Combat::PowerUpdate packet;
9414+
packet.Guid = GetGUID();
9415+
packet.Power.PowerType = power;
9416+
packet.Power.Power = val;
9417+
SendMessageToSet(packet.Write(), GetTypeId() == TYPEID_PLAYER);
94189418
}
94199419

94209420
// 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)