Skip to content

Commit a20fe69

Browse files
author
Github Actions
committed
Merge 3.3.5 to 3.3.5-nemesis_anticheat
2 parents 5ee5bef + 9ab2b43 commit a20fe69

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
@@ -10012,13 +10012,13 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1001210012
for (uint8 i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_ITEM_END; ++i)
1001310013
{
1001410014
pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10015-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10015+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1001610016
return true;
1001710017
}
1001810018
for (uint8 i = KEYRING_SLOT_START; i < CURRENCYTOKEN_SLOT_END; ++i)
1001910019
{
1002010020
pItem = GetUseableItemByPos(INVENTORY_SLOT_BAG_0, i);
10021-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10021+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1002210022
return true;
1002310023
}
1002410024
for (uint8 i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END; ++i)
@@ -10028,7 +10028,7 @@ bool Player::HasItemTotemCategory(uint32 TotemCategory) const
1002810028
for (uint32 j = 0; j < pBag->GetBagSize(); ++j)
1002910029
{
1003010030
pItem = GetUseableItemByPos(i, j);
10031-
if (pItem && IsTotemCategoryCompatiableWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
10031+
if (pItem && IsTotemCategoryCompatibleWith(pItem->GetTemplate()->GetTotemCategory(), TotemCategory))
1003210032
return true;
1003310033
}
1003410034
}
@@ -11845,9 +11845,12 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
1184511845
m_weaponChangeTimer = spellProto->StartRecoveryTime;
1184611846

1184711847
GetSpellHistory()->AddGlobalCooldown(spellProto, m_weaponChangeTimer);
11848-
WorldPacket data;
11849-
GetSpellHistory()->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, cooldownSpell, 0);
11850-
SendDirectMessage(&data);
11848+
11849+
WorldPackets::Spells::SpellCooldown spellCooldown;
11850+
spellCooldown.Caster = GetGUID();
11851+
spellCooldown.Flags = SPELL_COOLDOWN_FLAG_INCLUDE_GCD;
11852+
spellCooldown.SpellCooldowns.emplace_back(cooldownSpell, 0);
11853+
SendDirectMessage(spellCooldown.Write());
1185111854
}
1185211855
}
1185311856
}
@@ -20108,10 +20111,7 @@ void Player::SendAutoRepeatCancel(Unit* target)
2010820111

2010920112
void Player::SendExplorationExperience(uint32 Area, uint32 Experience) const
2011020113
{
20111-
WorldPacket data(SMSG_EXPLORATION_EXPERIENCE, 8);
20112-
data << uint32(Area);
20113-
data << uint32(Experience);
20114-
SendDirectMessage(&data);
20114+
SendDirectMessage(WorldPackets::Misc::ExplorationExperience(Experience, Area).Write());
2011520115
}
2011620116

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

94149414
if (withPowerUpdate)
94159415
{
9416-
WorldPacket data(SMSG_POWER_UPDATE, 8 + 1 + 4);
9417-
data << GetPackGUID();
9418-
data << uint8(power);
9419-
data << uint32(val);
9420-
SendMessageToSet(&data, GetTypeId() == TYPEID_PLAYER);
9416+
WorldPackets::Combat::PowerUpdate packet;
9417+
packet.Guid = GetGUID();
9418+
packet.Power.PowerType = power;
9419+
packet.Power.Power = val;
9420+
SendMessageToSet(packet.Write(), GetTypeId() == TYPEID_PLAYER);
94219421
}
94229422

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