Skip to content

Commit db30b21

Browse files
author
Github Actions
committed
Merge 3.3.5-base_patch to 3.3.5-paymaster
2 parents a6c2367 + 97d3c14 commit db30b21

76 files changed

Lines changed: 891 additions & 644 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_hun_viper_sting';
2+
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_warl_drain_mana';
3+
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_item_skull_of_impending_doom';
4+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
5+
(3034, 'spell_hun_viper_sting'),
6+
(5138, 'spell_warl_drain_mana'),
7+
(5024, 'spell_item_skull_of_impending_doom');

‎src/server/game/AI/ScriptedAI/ScriptedCreature.cpp‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ bool ScriptedAI::HealthAbovePct(uint32 pct) const
303303
return me->HealthAbovePct(pct);
304304
}
305305

306-
SpellInfo const* ScriptedAI::SelectSpell(Unit* target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effects)
306+
SpellInfo const* ScriptedAI::SelectSpell(Unit* target, uint32 school, uint32 mechanic, SelectTargetType targets, float rangeMin, float rangeMax, SelectEffect effects)
307307
{
308308
// No target so we can't cast
309309
if (!target)
@@ -347,17 +347,6 @@ SpellInfo const* ScriptedAI::SelectSpell(Unit* target, uint32 school, uint32 mec
347347
if (mechanic && tempSpell->Mechanic != mechanic)
348348
continue;
349349

350-
// Make sure that the spell uses the requested amount of power
351-
if (powerCostMin && tempSpell->ManaCost < powerCostMin)
352-
continue;
353-
354-
if (powerCostMax && tempSpell->ManaCost > powerCostMax)
355-
continue;
356-
357-
// Continue if we don't have the mana to actually cast this spell
358-
if (tempSpell->ManaCost > me->GetPower(tempSpell->PowerType))
359-
continue;
360-
361350
// Check if the spell meets our range requirements
362351
if (rangeMin && me->GetSpellMinRangeForTarget(target, tempSpell) < rangeMin)
363352
continue;

‎src/server/game/AI/ScriptedAI/ScriptedCreature.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ struct TC_GAME_API ScriptedAI : public CreatureAI
222222
bool HealthAbovePct(uint32 pct) const;
223223

224224
// Returns spells that meet the specified criteria from the creatures spell list
225-
SpellInfo const* SelectSpell(Unit* target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effect);
225+
SpellInfo const* SelectSpell(Unit* target, uint32 school, uint32 mechanic, SelectTargetType targets, float rangeMin, float rangeMax, SelectEffect effect);
226226

227227
void SetEquipmentSlots(bool loadDefault, int32 mainHand = EQUIP_NO_CHANGE, int32 offHand = EQUIP_NO_CHANGE, int32 ranged = EQUIP_NO_CHANGE);
228228

‎src/server/game/AuctionHouse/AuctionHouseMgr.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player
755755
if (itemSubClass != 0xffffffff && proto->GetSubClass() != itemSubClass)
756756
continue;
757757

758-
if (inventoryType != 0xffffffff && proto->GetInventoryType() != inventoryType)
758+
if (inventoryType != 0xffffffff && proto->GetInventoryType() != InventoryType(inventoryType))
759759
{
760760
// Cloth items can have INVTYPE_CHEST or INVTYPE_ROBE
761761
if (!(inventoryType == INVTYPE_CHEST && proto->GetInventoryType() == INVTYPE_ROBE))

‎src/server/game/AuctionHouse/AuctionHouseMgr.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class TC_GAME_API AuctionHouseObject
124124
typedef std::map<uint32, AuctionEntry*> AuctionEntryMap;
125125
typedef std::unordered_map<ObjectGuid, time_t> PlayerGetAllThrottleMap;
126126

127-
uint32 Getcount() const { return AuctionsMap.size(); }
127+
uint32 Getcount() const { return uint32(AuctionsMap.size()); }
128128

129129
AuctionEntryMap::iterator GetAuctionsBegin() {return AuctionsMap.begin();}
130130
AuctionEntryMap::iterator GetAuctionsEnd() {return AuctionsMap.end();}

‎src/server/game/Battlegrounds/Battleground.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,12 @@ class TC_GAME_API Battleground
341341

342342
typedef std::map<ObjectGuid, BattlegroundPlayer> BattlegroundPlayerMap;
343343
BattlegroundPlayerMap const& GetPlayers() const { return m_Players; }
344-
uint32 GetPlayersSize() const { return m_Players.size(); }
344+
uint32 GetPlayersSize() const { return uint32(m_Players.size()); }
345345

346346
typedef std::map<ObjectGuid, BattlegroundScore*> BattlegroundScoreMap;
347-
uint32 GetPlayerScoresSize() const { return PlayerScores.size(); }
347+
uint32 GetPlayerScoresSize() const { return uint32(PlayerScores.size()); }
348348

349-
uint32 GetReviveQueueSize() const { return m_ReviveQueue.size(); }
349+
uint32 GetReviveQueueSize() const { return uint32(m_ReviveQueue.size()); }
350350

351351
void AddPlayerToResurrectQueue(ObjectGuid npc_guid, ObjectGuid player_guid);
352352
void RemovePlayerFromResurrectQueue(ObjectGuid player_guid);

‎src/server/game/DungeonFinding/LFGMgr.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ LFGDungeonData::LFGDungeonData() : id(0), name(), map(0), type(0), expansion(0),
5050
}
5151

5252
LFGDungeonData::LFGDungeonData(LFGDungeonEntry const* dbc) : id(dbc->ID), name(dbc->Name[0]), map(dbc->MapID),
53-
type(dbc->TypeID), expansion(uint8(dbc->ExpansionLevel)), group(uint8(dbc->GroupID)),
53+
type(uint8(dbc->TypeID)), expansion(uint8(dbc->ExpansionLevel)), group(uint8(dbc->GroupID)),
5454
minlevel({ uint8(dbc->MinLevel), uint8(dbc->MinLevel), uint8(dbc->MinLevel) }),
5555
maxlevel({ uint8(dbc->MaxLevel), uint8(dbc->MaxLevel), uint8(dbc->MaxLevel) }),
5656
difficulty(Difficulty(dbc->Difficulty)), seasonal((dbc->Flags & LFG_FLAG_SEASONAL) != 0), x(0.0f), y(0.0f), z(0.0f), o(0.0f)

‎src/server/game/DungeonFinding/LFGMgr.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ struct LFGDungeonData
286286

287287
uint32 id;
288288
std::string name;
289-
uint16 map;
289+
uint32 map;
290290
uint8 type;
291291
uint8 expansion;
292292
uint8 group;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@ bool Corpse::Create(ObjectGuid::LowType guidlow, Player* owner)
8181
}
8282

8383
Object::_Create(ObjectGuid::Create<HighGuid::Corpse>(guidlow));
84-
SetPhaseMask(owner->GetPhaseMask(), false);
8584

8685
SetObjectScale(1.0f);
8786
SetOwnerGUID(owner->GetGUID());
8887

8988
_cellCoord = Trinity::ComputeCellCoord(GetPositionX(), GetPositionY());
9089

90+
CopyPhaseFrom(owner);
91+
9192
return true;
9293
}
9394

‎src/server/game/Entities/Creature/GossipDef.h‎

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,8 @@ class TC_GAME_API GossipMenu
177177

178178
void AddGossipMenuItemData(uint32 menuItemId, uint32 gossipActionMenuId, uint32 gossipActionPoi);
179179

180-
uint32 GetMenuItemCount() const
181-
{
182-
return _menuItems.size();
183-
}
184-
185-
bool Empty() const
186-
{
187-
return _menuItems.empty();
188-
}
180+
uint32 GetMenuItemCount() const { return uint32(_menuItems.size()); }
181+
bool Empty() const { return _menuItems.empty(); }
189182

190183
GossipMenuItem const* GetItem(uint32 id) const
191184
{
@@ -232,23 +225,10 @@ class TC_GAME_API QuestMenu
232225

233226
void AddMenuItem(uint32 QuestId, uint8 Icon);
234227
void ClearMenu();
235-
236-
uint8 GetMenuItemCount() const
237-
{
238-
return _questMenuItems.size();
239-
}
240-
241-
bool Empty() const
242-
{
243-
return _questMenuItems.empty();
244-
}
245-
228+
uint8 GetMenuItemCount() const{ return uint8(_questMenuItems.size()); }
229+
bool Empty() const { return _questMenuItems.empty(); }
246230
bool HasItem(uint32 questId) const;
247-
248-
QuestMenuItem const& GetItem(uint16 index) const
249-
{
250-
return _questMenuItems[index];
251-
}
231+
QuestMenuItem const& GetItem(uint16 index) const { return _questMenuItems[index]; }
252232

253233
private:
254234
QuestMenuItemList _questMenuItems;

0 commit comments

Comments
 (0)