Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line * worldserver.conf (cherry picked from commit a32b6b8ac4c81128a56b282f20837fb085bdd9e7)
This commit is contained in:
@@ -58,7 +58,6 @@
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
|
||||
MACRO(NORMALIZE_VERSION _requested_version _normalized_version)
|
||||
STRING(REGEX MATCH "[^0-9]*[0-9]+\\.[0-9]+\\.[0-9]+.*" _threePartMatch "${_requested_version}")
|
||||
if(_threePartMatch)
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <G3D/Array.h>
|
||||
#include <G3D/Set.h>
|
||||
|
||||
|
||||
template<class T, class BoundsFunc = BoundsTrait<T> >
|
||||
class BIHWrap
|
||||
{
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _DYNTREE_H
|
||||
#define _DYNTREE_H
|
||||
|
||||
|
||||
@@ -51,7 +51,6 @@ namespace MMAP
|
||||
MMapTileSet loadedTileRefs; // maps [map grid coords] to [dtTile]
|
||||
};
|
||||
|
||||
|
||||
typedef std::unordered_map<uint32, MMapData*> MMapDataSet;
|
||||
|
||||
// singleton class
|
||||
|
||||
@@ -1294,7 +1294,6 @@ bool logChildren)
|
||||
dataKind == DataIsStaticMember)
|
||||
continue;
|
||||
|
||||
|
||||
symbolDetails.top().HasChildren = true;
|
||||
if (!logChildren)
|
||||
{
|
||||
|
||||
@@ -131,7 +131,6 @@ public:
|
||||
|
||||
#define sMetric Metric::instance()
|
||||
|
||||
|
||||
template<typename LoggerType>
|
||||
class MetricStopWatch
|
||||
{
|
||||
|
||||
@@ -116,7 +116,6 @@ class TC_DATABASE_API Field
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
bool IsNull() const
|
||||
{
|
||||
return data.value == nullptr;
|
||||
|
||||
@@ -42,5 +42,4 @@ private:
|
||||
bool _isDBAllowed;
|
||||
};
|
||||
|
||||
|
||||
#endif // SelectableAI_h__
|
||||
|
||||
@@ -2551,7 +2551,6 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
ENSURE_AI(SmartAI, summon->AI())->SetTimedActionList(e, e.entryOrGuid, privateObjectOwner, e.event_id + 1);
|
||||
};
|
||||
|
||||
|
||||
// if target is position then targets container was empty
|
||||
if (e.GetTargetType() != SMART_TARGET_POSITION)
|
||||
{
|
||||
|
||||
@@ -1959,7 +1959,6 @@ void AuctionHouseObject::SendAuctionExpired(AuctionPosting const* auction, Chara
|
||||
if (owner)
|
||||
owner->GetSession()->SendAuctionClosedNotification(auction, 0.0f, false);
|
||||
|
||||
|
||||
auto itemItr = auction->Items.begin();
|
||||
while (itemItr != auction->Items.end())
|
||||
{
|
||||
|
||||
@@ -187,7 +187,6 @@ bool Battlefield::Update(uint32 diff)
|
||||
objective_changed = true;
|
||||
}
|
||||
|
||||
|
||||
if (m_LastResurrectTimer <= diff)
|
||||
{
|
||||
for (uint8 i = 0; i < m_GraveyardList.size(); i++)
|
||||
|
||||
@@ -169,9 +169,6 @@ class TC_GAME_API ArenaTeam
|
||||
void MemberLost(Player* player, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange = -12);
|
||||
void OfflineMemberLost(ObjectGuid guid, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange = -12);
|
||||
|
||||
|
||||
|
||||
|
||||
bool FinishWeek(); // returns true if arena team played this week
|
||||
void FinishGame(int32 mod);
|
||||
|
||||
|
||||
@@ -496,7 +496,6 @@ void BlackMarketEntry::PlaceBid(uint64 bid, Player* player, CharacterDatabaseTra
|
||||
|
||||
player->ModifyMoney(-static_cast<int64>(bid));
|
||||
|
||||
|
||||
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_BLACKMARKET_AUCTIONS);
|
||||
|
||||
stmt->setUInt64(0, _currentBid);
|
||||
|
||||
@@ -198,7 +198,6 @@ void CharacterCache::UpdateCharacterInfoDeleted(ObjectGuid const& guid, bool del
|
||||
itr->second.Name = *name;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Getters
|
||||
*/
|
||||
|
||||
@@ -252,7 +252,6 @@ class TC_GAME_API Channel
|
||||
bool IsOn(ObjectGuid who) const { return _playersStore.find(who) != _playersStore.end(); }
|
||||
bool IsBanned(ObjectGuid guid) const { return _bannedStore.find(guid) != _bannedStore.end(); }
|
||||
|
||||
|
||||
uint8 GetPlayerFlags(ObjectGuid const& guid) const
|
||||
{
|
||||
PlayerContainer::const_iterator itr = _playersStore.find(guid);
|
||||
|
||||
@@ -488,4 +488,3 @@ void Trinity::ChatCommands::InvalidateCommandMap() { Trinity::Impl::ChatCommands
|
||||
bool Trinity::ChatCommands::TryExecuteCommand(ChatHandler& handler, std::string_view cmd) { return Trinity::Impl::ChatCommands::ChatCommandNode::TryExecuteCommand(handler, cmd); }
|
||||
void Trinity::ChatCommands::SendCommandHelpFor(ChatHandler& handler, std::string_view cmd) { Trinity::Impl::ChatCommands::ChatCommandNode::SendCommandHelpFor(handler, cmd); }
|
||||
std::vector<std::string> Trinity::ChatCommands::GetAutoCompletionsFor(ChatHandler const& handler, std::string_view cmd) { return Trinity::Impl::ChatCommands::ChatCommandNode::GetAutoCompletionsFor(handler, cmd); }
|
||||
|
||||
|
||||
@@ -137,7 +137,6 @@ class TC_GAME_API CombatManager
|
||||
std::unordered_map<ObjectGuid, CombatReference*> _pveRefs;
|
||||
std::unordered_map<ObjectGuid, PvPCombatReference*> _pvpRefs;
|
||||
|
||||
|
||||
friend struct CombatReference;
|
||||
friend struct PvPCombatReference;
|
||||
};
|
||||
|
||||
@@ -2992,7 +2992,6 @@ bool ConditionMgr::IsPlayerMeetingCondition(Player const* player, PlayerConditio
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (condition->SpellID[0])
|
||||
{
|
||||
std::array<bool, std::tuple_size_v<decltype(condition->SpellID)>> results;
|
||||
|
||||
@@ -63,7 +63,6 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DB2Storage<T>& _storage;
|
||||
uint32 _count;
|
||||
};
|
||||
|
||||
@@ -1743,7 +1743,6 @@ LfgLockMap LFGMgr::GetLockedDungeons(ObjectGuid guid)
|
||||
if (player->GetTeam() == HORDE && ar->quest_H && !player->GetQuestRewardStatus(ar->quest_H))
|
||||
return LFG_LOCKSTATUS_QUEST_NOT_COMPLETED;
|
||||
|
||||
|
||||
if (ar->item)
|
||||
{
|
||||
if (!player->HasItemCount(ar->item) && (!ar->item2 || !player->HasItemCount(ar->item2)))
|
||||
|
||||
@@ -1000,7 +1000,6 @@ void AreaTrigger::AI_Destroy()
|
||||
_ai.reset();
|
||||
}
|
||||
|
||||
|
||||
void AreaTrigger::BuildValuesCreate(ByteBuffer* data, Player const* target) const
|
||||
{
|
||||
UF::UpdateFieldFlag flags = GetUpdateFieldFlagsFor(target);
|
||||
|
||||
@@ -2030,7 +2030,6 @@ bool Creature::CanStartAttack(Unit const* who, bool force) const
|
||||
return IsWithinLOSInMap(who);
|
||||
}
|
||||
|
||||
|
||||
bool Creature::CheckNoGrayAggroConfig(uint32 playerLevel, uint32 creatureLevel) const
|
||||
{
|
||||
if (Trinity::XP::GetColorCode(playerLevel, creatureLevel) != XP_GRAY)
|
||||
|
||||
@@ -1025,7 +1025,6 @@ void GameObject::Update(uint32 diff)
|
||||
else
|
||||
AddObjectToRemoveList();
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,6 @@ uint32 ItemTemplate::GetSkill() const
|
||||
0, SKILL_CLOTH, SKILL_LEATHER, SKILL_MAIL, SKILL_PLATE_MAIL, 0, SKILL_SHIELD, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
|
||||
switch (GetClass())
|
||||
{
|
||||
case ITEM_CLASS_WEAPON:
|
||||
|
||||
@@ -453,7 +453,6 @@ bool Player::Create(ObjectGuid::LowType guidlow, WorldPackets::Character::Charac
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// set initial homebind position
|
||||
SetHomebind(*this, GetAreaId());
|
||||
|
||||
@@ -14118,7 +14117,6 @@ void Player::ApplyEnchantment(Item* item, EnchantmentSlot slot, bool apply, bool
|
||||
if (pEnchant->RequiredSkillID > 0 && pEnchant->RequiredSkillRank > GetSkillValue(pEnchant->RequiredSkillID))
|
||||
return;
|
||||
|
||||
|
||||
// If we're dealing with a gem inside a prismatic socket we need to check the prismatic socket requirements
|
||||
// rather than the gem requirements itself. If the socket has no color it is a prismatic socket.
|
||||
if ((slot == SOCK_ENCHANTMENT_SLOT || slot == SOCK_ENCHANTMENT_SLOT_2 || slot == SOCK_ENCHANTMENT_SLOT_3))
|
||||
@@ -16443,7 +16441,6 @@ bool Player::GetQuestRewardStatus(uint32 quest_id) const
|
||||
if (qInfo->IsSeasonal() && !qInfo->IsRepeatable())
|
||||
return !SatisfyQuestSeasonal(qInfo, false);
|
||||
|
||||
|
||||
// for repeatable quests: rewarded field is set after first reward only to prevent getting XP more than once
|
||||
if (!qInfo->IsRepeatable())
|
||||
return IsQuestRewarded(quest_id);
|
||||
|
||||
@@ -378,7 +378,6 @@ Unit::Unit(bool isWorldObject) :
|
||||
}
|
||||
m_baseSpellCritChance = 5;
|
||||
|
||||
|
||||
for (uint8 i = 0; i < MAX_MOVE_TYPE; ++i)
|
||||
m_speed_rate[i] = 1.0f;
|
||||
|
||||
@@ -10911,7 +10910,6 @@ void Unit::SetRooted(bool apply, bool packetOnly /*= false*/)
|
||||
RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT);
|
||||
}
|
||||
|
||||
|
||||
static OpcodeServer const rootOpcodeTable[2][2] =
|
||||
{
|
||||
{ SMSG_MOVE_SPLINE_UNROOT, SMSG_MOVE_UNROOT },
|
||||
|
||||
@@ -1539,7 +1539,6 @@ class TC_GAME_API Unit : public WorldObject
|
||||
float m_modSpellHitChance;
|
||||
int32 m_baseSpellCritChance;
|
||||
|
||||
|
||||
uint32 m_baseAttackSpeed[MAX_ATTACK];
|
||||
float m_modAttackSpeedPct[MAX_ATTACK];
|
||||
uint32 m_attackTimer[MAX_ATTACK];
|
||||
|
||||
@@ -852,7 +852,6 @@ bool VehicleJoinEvent::Execute(uint64, uint32)
|
||||
if (veSeat->HasFlag(VEHICLE_SEAT_FLAG_DISABLE_GRAVITY))
|
||||
Passenger->SetDisableGravity(true);
|
||||
|
||||
|
||||
float o = veSeatAddon ? veSeatAddon->SeatOrientationOffset : 0.f;
|
||||
float x = veSeat->AttachmentOffset.X;
|
||||
float y = veSeat->AttachmentOffset.Y;
|
||||
|
||||
@@ -69,7 +69,6 @@ bool Garrison::LoadFromDB(PreparedQueryResult garrison, PreparedQueryResult blue
|
||||
time_t timeBuilt = fields[2].GetInt64();
|
||||
bool active = fields[3].GetBool();
|
||||
|
||||
|
||||
Plot* plot = GetPlot(plotInstanceId);
|
||||
if (!plot)
|
||||
continue;
|
||||
|
||||
@@ -7128,7 +7128,6 @@ void ObjectMgr::RemoveGraveyardLink(uint32 id, uint32 zoneId, uint32 team, bool
|
||||
|
||||
bool found = false;
|
||||
|
||||
|
||||
for (; range.first != range.second; ++range.first)
|
||||
{
|
||||
GraveyardData & data = range.first->second;
|
||||
|
||||
@@ -2201,7 +2201,6 @@ void Group::ResetInstances(uint8 method, bool isRaid, bool isLegacy, Player* Sen
|
||||
CharacterDatabase.Execute(stmt);
|
||||
}
|
||||
|
||||
|
||||
itr = difficultyItr->second.erase(itr);
|
||||
// this unloads the instance save unless online players are bound to it
|
||||
// (eg. permanent binds or GM solo binds)
|
||||
|
||||
@@ -3511,7 +3511,6 @@ void Guild::SendBankList(WorldSession* session, uint8 tabId, bool fullUpdate) co
|
||||
{
|
||||
WorldPackets::Guild::GuildBankItemInfo& itemInfo = packet.ItemInfo.emplace_back();
|
||||
|
||||
|
||||
itemInfo.Slot = int32(slotId);
|
||||
itemInfo.Item.ItemID = tabItem->GetEntry();
|
||||
itemInfo.Count = int32(tabItem->GetCount());
|
||||
|
||||
@@ -361,7 +361,6 @@ void GuildMgr::LoadGuilds()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 8. Load all guild bank tabs
|
||||
TC_LOG_INFO("server.loading", "Loading guild bank tabs...");
|
||||
{
|
||||
|
||||
@@ -471,7 +471,6 @@ void WorldSession::HandleRequestBattlefieldStatusOpcode(WorldPackets::Battlegrou
|
||||
if (!bg)
|
||||
continue;
|
||||
|
||||
|
||||
WorldPackets::Battleground::BattlefieldStatusNeedConfirmation battlefieldStatus;
|
||||
sBattlegroundMgr->BuildBattlegroundStatusNeedConfirmation(&battlefieldStatus, bg, _player, i, _player->GetBattlegroundQueueJoinTime(bgQueueTypeId), getMSTimeDiff(getMSTime(), ginfo.RemoveInviteTime), arenaType);
|
||||
SendPacket(battlefieldStatus.Write());
|
||||
|
||||
@@ -310,7 +310,6 @@ void WorldSession::HandleCastSpellOpcode(WorldPackets::Spells::CastSpell& cast)
|
||||
{
|
||||
bool allow = false;
|
||||
|
||||
|
||||
// allow casting of unknown spells for special lock cases
|
||||
if (GameObject* go = targets.GetGOTarget())
|
||||
if (go->GetSpellForLock(caster->ToPlayer()) == spellInfo)
|
||||
@@ -557,7 +556,6 @@ void WorldSession::HandleMirrorImageDataRequest(WorldPackets::Spells::GetMirrorI
|
||||
mirrorImageComponentedData.Gender = creator->GetGender();
|
||||
mirrorImageComponentedData.ClassID = creator->GetClass();
|
||||
|
||||
|
||||
for (UF::ChrCustomizationChoice const& customization : player->m_playerData->Customizations)
|
||||
mirrorImageComponentedData.Customizations.push_back(customization);
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ bool RectangleBoundary::IsWithinBoundaryArea(Position const* pos) const
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ---== CIRCLE ==---
|
||||
CircleBoundary::CircleBoundary(Position const& center, double radius, bool isInverted) :
|
||||
AreaBoundary(isInverted), _center(center), _radiusSq(radius*radius) { }
|
||||
@@ -44,7 +43,6 @@ bool CircleBoundary::IsWithinBoundaryArea(Position const* pos) const
|
||||
return offX*offX+offY*offY <= _radiusSq;
|
||||
}
|
||||
|
||||
|
||||
// ---== ELLIPSE ==---
|
||||
EllipseBoundary::EllipseBoundary(Position const& center, double radiusX, double radiusY, bool isInverted) :
|
||||
AreaBoundary(isInverted), _center(center), _radiusYSq(radiusY*radiusY), _scaleXSq(_radiusYSq / (radiusX*radiusX)) { }
|
||||
@@ -55,7 +53,6 @@ bool EllipseBoundary::IsWithinBoundaryArea(Position const* pos) const
|
||||
return (offX*offX)*_scaleXSq + (offY*offY) <= _radiusYSq;
|
||||
}
|
||||
|
||||
|
||||
// ---== TRIANGLE ==---
|
||||
TriangleBoundary::TriangleBoundary(Position const& pointA, Position const& pointB, Position const& pointC, bool isInverted) :
|
||||
AreaBoundary(isInverted), _a(pointA), _b(pointB), _c(pointC), _abx(_b.GetDoublePositionX()-_a.GetDoublePositionX()), _bcx(_c.GetDoublePositionX()-_b.GetDoublePositionX()), _cax(_a.GetDoublePositionX() - _c.GetDoublePositionX()), _aby(_b.GetDoublePositionY()-_a.GetDoublePositionY()), _bcy(_c.GetDoublePositionY()-_b.GetDoublePositionY()), _cay(_a.GetDoublePositionY() - _c.GetDoublePositionY()) { }
|
||||
@@ -70,7 +67,6 @@ bool TriangleBoundary::IsWithinBoundaryArea(Position const* pos) const
|
||||
return ((sign1 == sign2) && (sign2 == sign3));
|
||||
}
|
||||
|
||||
|
||||
// ---== PARALLELOGRAM ==---
|
||||
ParallelogramBoundary::ParallelogramBoundary(Position const& cornerA, Position const& cornerB, Position const& cornerD, bool isInverted) :
|
||||
AreaBoundary(isInverted), _a(cornerA), _b(cornerB), _d(cornerD), _c(DoublePosition(_d.GetDoublePositionX() + (_b.GetDoublePositionX() - _a.GetDoublePositionX()), _d.GetDoublePositionY() + (_b.GetDoublePositionY() - _a.GetDoublePositionY()))), _abx(_b.GetDoublePositionX() - _a.GetDoublePositionX()), _dax(_a.GetDoublePositionX() - _d.GetDoublePositionX()), _aby(_b.GetDoublePositionY() - _a.GetDoublePositionY()), _day(_a.GetDoublePositionY() - _d.GetDoublePositionY()) { }
|
||||
@@ -86,7 +82,6 @@ bool ParallelogramBoundary::IsWithinBoundaryArea(Position const* pos) const
|
||||
return ((sign1 == sign2) && (sign2 == sign3) && (sign3 == sign4));
|
||||
}
|
||||
|
||||
|
||||
// ---== Z RANGE ==---
|
||||
ZRangeBoundary::ZRangeBoundary(float minZ, float maxZ, bool isInverted) :
|
||||
AreaBoundary(isInverted), _minZ(minZ), _maxZ(maxZ) { }
|
||||
@@ -95,7 +90,6 @@ bool ZRangeBoundary::IsWithinBoundaryArea(Position const* pos) const
|
||||
return (_minZ <= pos->GetPositionZ() && pos->GetPositionZ() <= _maxZ);
|
||||
}
|
||||
|
||||
|
||||
// ---== UNION OF 2 BOUNDARIES ==---
|
||||
BoundaryUnionBoundary::BoundaryUnionBoundary(AreaBoundary const* b1, AreaBoundary const* b2, bool isInverted) :
|
||||
AreaBoundary(isInverted), _b1(b1), _b2(b2)
|
||||
|
||||
@@ -67,7 +67,6 @@ BOOST_1_74_FIBONACCI_HEAP_MSVC_COMPILE_FIX(RespawnListContainer::value_type)
|
||||
|
||||
GridState* si_GridStates[MAX_GRID_STATE];
|
||||
|
||||
|
||||
ZoneDynamicInfo::ZoneDynamicInfo() : MusicId(0), DefaultWeather(nullptr), WeatherId(WEATHER_STATE_FINE),
|
||||
Intensity(0.0f) { }
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
#include <mutex>
|
||||
|
||||
|
||||
class MapUpdateRequest
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -66,5 +66,4 @@ namespace Trinity
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif //TRINITY_COMMONPREDICATES_H
|
||||
|
||||
@@ -2525,7 +2525,6 @@ enum SpellImmunity
|
||||
MAX_SPELL_IMMUNITY
|
||||
};
|
||||
|
||||
|
||||
// target enum name consist of:
|
||||
// TARGET_[OBJECT_TYPE]_[REFERENCE_TYPE(skipped for caster)]_[SELECTION_TYPE(skipped for default)]_[additional specifiers(friendly, BACK_LEFT, etc.]
|
||||
enum Targets
|
||||
@@ -7821,7 +7820,6 @@ enum WorldState : uint32
|
||||
WS_BATTLEFIELD_TB_EAST_INTACT_NEUTRAL = 5451,
|
||||
WS_BATTLEFIELD_TB_EAST_DAMAGED_NEUTRAL = 5452,
|
||||
|
||||
|
||||
WS_CURRENCY_RESET_TIME = 20001, // Next arena distribution time
|
||||
WS_WEEKLY_QUEST_RESET_TIME = 20002, // Next weekly quest reset time
|
||||
WS_BG_DAILY_RESET_TIME = 20003, // Next daily BG reset time
|
||||
|
||||
@@ -291,5 +291,3 @@ bool QuestPoolMgr::IsQuestActive(uint32 questId) const
|
||||
|
||||
return (it->second->activeQuests.find(questId) != it->second->activeQuests.end());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -94,7 +94,6 @@ enum XPColorChar : uint8;
|
||||
|
||||
#define VISIBLE_RANGE 166.0f //MAX visible range (size of grid)
|
||||
|
||||
|
||||
/*
|
||||
@todo Add more script type classes.
|
||||
|
||||
|
||||
@@ -759,7 +759,6 @@ namespace WorldPackets
|
||||
bool FullUpdate = false;
|
||||
};
|
||||
|
||||
|
||||
class GuildBankRemainingWithdrawMoneyQuery final : public ClientPacket
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -256,7 +256,6 @@ void WorldPackets::Party::SetPartyAssignment::Read()
|
||||
Set = _worldPacket.ReadBit();
|
||||
}
|
||||
|
||||
|
||||
void WorldPackets::Party::SetRole::Read()
|
||||
{
|
||||
_worldPacket >> PartyIndex;
|
||||
|
||||
@@ -1282,7 +1282,6 @@ bool WorldSession::DosProtection::EvaluateOpcode(WorldPacket& p, time_t time) co
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
uint32 WorldSession::DosProtection::GetMaxPacketCounterAllowed(uint16 opcode) const
|
||||
{
|
||||
uint32 maxPacketCounterAllowed;
|
||||
|
||||
@@ -1607,7 +1607,6 @@ class TC_GAME_API WorldSession
|
||||
void HandleBfQueueInviteResponse(WorldPackets::Battlefield::BFMgrQueueInviteResponse& bfMgrQueueInviteResponse);
|
||||
void HandleBfQueueExitRequest(WorldPackets::Battlefield::BFMgrQueueExitRequest& bfMgrQueueExitRequest);
|
||||
|
||||
|
||||
void HandleMinimapPingOpcode(WorldPackets::Party::MinimapPingClient& packet);
|
||||
void HandleRandomRollOpcode(WorldPackets::Misc::RandomRollClient& packet);
|
||||
void HandleFarSightOpcode(WorldPackets::Misc::FarSight& packet);
|
||||
|
||||
@@ -1268,7 +1268,6 @@ void Spell::DoCreateItem(uint32 itemId, ItemContext context /*= ItemContext::NON
|
||||
|
||||
/* == gem perfection handling over == */
|
||||
|
||||
|
||||
/* == profession specialization handling == */
|
||||
|
||||
// init items_count to 1, since 1 item will be created regardless of specialization
|
||||
@@ -1288,7 +1287,6 @@ void Spell::DoCreateItem(uint32 itemId, ItemContext context /*= ItemContext::NON
|
||||
|
||||
/* == profession specialization handling over == */
|
||||
|
||||
|
||||
// can the player store the new item?
|
||||
ItemPosCountVec dest;
|
||||
uint32 no_space = 0;
|
||||
@@ -1329,7 +1327,6 @@ void Spell::DoCreateItem(uint32 itemId, ItemContext context /*= ItemContext::NON
|
||||
if (Guild* guild = player->GetGuild())
|
||||
guild->AddGuildNews(GUILD_NEWS_ITEM_CRAFTED, player->GetGUID(), 0, pProto->GetId());
|
||||
|
||||
|
||||
// we succeeded in creating at least one item, so a levelup is possible
|
||||
player->UpdateCraftSkill(m_spellInfo->Id);
|
||||
}
|
||||
@@ -2964,7 +2961,6 @@ void Spell::EffectSummonObjectWild()
|
||||
o = target->GetOrientation();
|
||||
}
|
||||
|
||||
|
||||
Map* map = target->GetMap();
|
||||
Position pos = Position(x, y, z, o);
|
||||
QuaternionData rot = QuaternionData::fromEulerAnglesZYX(o, 0.f, 0.f);
|
||||
|
||||
@@ -119,7 +119,6 @@ enum SpellFamilyFlag
|
||||
SPELLFAMILYFLAG_SHAMAN_TOTEM_EFFECTS = 0x04000000 // Seems to be linked to most totems and some totem effects
|
||||
};
|
||||
|
||||
|
||||
#define SPELL_LINKED_MAX_SPELLS 200000
|
||||
|
||||
enum SpellLinkedType
|
||||
@@ -130,7 +129,6 @@ enum SpellLinkedType
|
||||
SPELL_LINK_REMOVE = 0
|
||||
};
|
||||
|
||||
|
||||
// Spell proc event related declarations (accessed using SpellMgr functions)
|
||||
enum ProcFlags : uint32
|
||||
{
|
||||
@@ -301,7 +299,6 @@ enum ProcAttributes : uint32
|
||||
PROC_ATTR_REQ_SPELLMOD = 0x0000008, // requires triggering spell to be affected by proccing aura to drop charges
|
||||
PROC_ATTR_USE_STACKS_FOR_CHARGES = 0x0000010, // consuming proc drops a stack from proccing aura instead of charge
|
||||
|
||||
|
||||
PROC_ATTR_REDUCE_PROC_60 = 0x0000080, // aura should have a reduced chance to proc if level of proc Actor > 60
|
||||
PROC_ATTR_CANT_PROC_FROM_ITEM_CAST = 0x0000100, // do not allow aura proc if proc is caused by a spell casted by item
|
||||
};
|
||||
|
||||
@@ -43,7 +43,6 @@ static constexpr char _luaEvalPostfix[] = ",'GUILD')end";
|
||||
|
||||
static_assert((sizeof(_luaEvalPrefix)-1 + sizeof(_luaEvalMidfix)-1 + sizeof(_luaEvalPostfix)-1 + WARDEN_MAX_LUA_CHECK_LENGTH) == 255);
|
||||
|
||||
|
||||
WardenWin::WardenWin() : Warden(), _serverTicks(0)
|
||||
{
|
||||
for (WardenCheckCategory category : EnumUtils::Iterate<WardenCheckCategory>())
|
||||
|
||||
@@ -578,7 +578,6 @@ void World::LoadConfigSettings(bool reload)
|
||||
sSupportMgr->SetSuggestionSystemStatus(m_bool_configs[CONFIG_SUPPORT_SUGGESTIONS_ENABLED]);
|
||||
}
|
||||
|
||||
|
||||
///- Get string for new logins (newly created characters)
|
||||
SetNewCharString(sConfigMgr->GetStringDefault("PlayerStart.String", ""));
|
||||
|
||||
|
||||
@@ -215,7 +215,6 @@ void BattlefieldTB::OnPlayerJoinWar(Player* player)
|
||||
player->CastSpell(player, SPELL_TOWER_ATTACK_BONUS, CastSpellExtraArgs(TRIGGERED_FULL_MASK).AddSpellMod(SPELLVALUE_AURA_STACK, GetData(BATTLEFIELD_TB_DATA_TOWERS_DESTROYED)));
|
||||
}
|
||||
|
||||
|
||||
void BattlefieldTB::OnPlayerLeaveWar(Player* player)
|
||||
{
|
||||
RemoveAurasFromPlayer(player);
|
||||
|
||||
@@ -481,7 +481,6 @@ bool BattlefieldWG::SetupBattlefield()
|
||||
m_GraveyardList[i] = graveyard;
|
||||
}
|
||||
|
||||
|
||||
Workshops.resize(WG_MAX_WORKSHOP);
|
||||
// Spawn workshop creatures and gameobjects
|
||||
for (uint8 i = 0; i < WG_MAX_WORKSHOP; i++)
|
||||
@@ -577,7 +576,6 @@ void BattlefieldWG::OnBattleStart()
|
||||
else
|
||||
TC_LOG_ERROR("bg.battlefield", "WG: Failed to spawn titan relic.");
|
||||
|
||||
|
||||
// Update tower visibility and update faction
|
||||
for (auto itr = CanonList.begin(); itr != CanonList.end(); ++itr)
|
||||
{
|
||||
@@ -1151,7 +1149,6 @@ uint32 BattlefieldWG::GetData(uint32 data) const
|
||||
return Battlefield::GetData(data);
|
||||
}
|
||||
|
||||
|
||||
void BattlefieldWG::FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates& packet)
|
||||
{
|
||||
packet.Worldstates.emplace_back(WS_BATTLEFIELD_WG_DEFENDED_A, GetData(BATTLEFIELD_WG_DATA_DEF_A));
|
||||
|
||||
@@ -388,7 +388,6 @@ public:
|
||||
fields[0].GetCString(), fields[1].GetCString(), permanent ? handler->GetTrinityString(LANG_BANINFO_NEVER) : fields[2].GetCString(),
|
||||
permanent ? handler->GetTrinityString(LANG_BANINFO_INFINITE) : secsToTimeString(fields[3].GetUInt64(), TimeFormat::ShortText).c_str(), fields[4].GetCString(), fields[5].GetCString());
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -164,7 +164,6 @@ public:
|
||||
Player* player = handler->GetSession()->GetPlayer();
|
||||
Seconds spawntm(spawntime.value_or(300));
|
||||
|
||||
|
||||
if (!sObjectMgr->GetGameObjectTemplate(objectId))
|
||||
{
|
||||
handler->PSendSysMessage(LANG_GAMEOBJECT_NOT_EXIST, objectId);
|
||||
|
||||
@@ -99,8 +99,6 @@ public:
|
||||
// "kill" original creature
|
||||
creatureTarget->DespawnOrUnsummon();
|
||||
|
||||
|
||||
|
||||
// prepare visual effect for levelup
|
||||
pet->SetLevel(player->GetLevel() - 1);
|
||||
|
||||
|
||||
@@ -164,8 +164,6 @@ bool ticket_commandscript::HandleTicketAssignToCommand(ChatHandler* handler, cha
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
template<typename T>
|
||||
bool ticket_commandscript::HandleTicketCloseByIdCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
@@ -285,7 +283,6 @@ bool ticket_commandscript::HandleTicketDeleteByIdCommand(ChatHandler* handler, c
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
bool ticket_commandscript::HandleTicketResetCommand(ChatHandler* handler, char const* /*args*/)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
// This is where scripts' loading functions should be declared:
|
||||
|
||||
|
||||
// The name of this function should match:
|
||||
// void Add${NameOfDirectory}Scripts()
|
||||
void AddCustomScripts()
|
||||
|
||||
@@ -47,7 +47,6 @@ enum Netherspite
|
||||
SPELL_NETHERSPITE_ROAR = 38684,
|
||||
};
|
||||
|
||||
|
||||
const float PortalCoord[3][3] =
|
||||
{
|
||||
{-11195.353516f, -1613.237183f, 278.237258f}, // Left side
|
||||
|
||||
@@ -124,7 +124,6 @@ public:
|
||||
void JustEngagedWith(Unit* /*who*/) override { }
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (HellfireTimer)
|
||||
|
||||
@@ -1007,7 +1007,6 @@ enum JulianneRomulo
|
||||
ROMULO_Y = -1758,
|
||||
};
|
||||
|
||||
|
||||
enum RAJPhase
|
||||
{
|
||||
PHASE_JULIANNE = 0,
|
||||
|
||||
@@ -418,7 +418,6 @@ public:
|
||||
#define SAY_DIALOG_ARCANAGOS_8 "What have you done, wizard? This cannot be! I'm burning from... within!"
|
||||
#define SAY_DIALOG_MEDIVH_9 "He should not have angered me. I must go... recover my strength now..."
|
||||
|
||||
|
||||
static float MedivPos[4] = {-11161.49f, -1902.24f, 91.48f, 1.94f};
|
||||
static float ArcanagosPos[4] = {-11169.75f, -1881.48f, 95.39f, 4.83f};
|
||||
|
||||
|
||||
@@ -245,8 +245,6 @@ Position const SummonPos[18] =
|
||||
{
|
||||
// Hall of Secrects
|
||||
|
||||
|
||||
|
||||
// The Hall of the damned
|
||||
{ 177.9624f, -68.23893f, 84.95197f, 3.228859f },
|
||||
{ 183.7705f, -61.43489f, 84.92424f, 5.148721f },
|
||||
@@ -265,8 +263,6 @@ Position const SummonPos[18] =
|
||||
{ 185.6157f, -42.91200f, 75.4812f, 4.45059f },
|
||||
// Vault of the Ravenian
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
enum Creatures
|
||||
|
||||
@@ -462,7 +462,6 @@ class spell_apothecary_validate_area : public SpellScriptLoader
|
||||
targets.push_back(target);
|
||||
}
|
||||
|
||||
|
||||
void HandleScript(SpellEffIndex /*effindex*/)
|
||||
{
|
||||
GetHitUnit()->CastSpell(GetHitUnit(), SPELL_BUNNY_LOCKDOWN, true);
|
||||
|
||||
@@ -221,7 +221,6 @@ class npc_voljin_zulaman : public CreatureScript
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
void AddSC_zulaman()
|
||||
{
|
||||
new npc_voljin_zulaman();
|
||||
|
||||
-2
@@ -202,7 +202,6 @@ class npc_hearthsinger_forresten_cot : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
InstanceScript const* const _instance;
|
||||
EventMap _events;
|
||||
@@ -1459,7 +1458,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
void AddSC_culling_of_stratholme()
|
||||
{
|
||||
new npc_hearthsinger_forresten_cot();
|
||||
|
||||
@@ -85,7 +85,6 @@ enum Actions
|
||||
ACTION_EQUIP_DECIMATION_BLADE = 3,
|
||||
};
|
||||
|
||||
|
||||
enum Misc
|
||||
{
|
||||
EQUIP_DEFAULT = 1,
|
||||
|
||||
@@ -82,7 +82,6 @@ enum Spells
|
||||
|
||||
SPELL_CRUMBLING_RUIN = 75609,
|
||||
|
||||
|
||||
SPELL_NEMESIS_STRIKE = 75604,
|
||||
|
||||
SPELL_OMEGA_STANCE_SUMMON = 77106,
|
||||
|
||||
@@ -190,7 +190,6 @@ public:
|
||||
summons.Summon(summoned);
|
||||
}
|
||||
|
||||
|
||||
void KilledUnit(Unit* /*victim*/) override
|
||||
{
|
||||
Talk(SAY_KILL);
|
||||
|
||||
@@ -225,7 +225,6 @@ public:
|
||||
DoFindNewTubber();
|
||||
}
|
||||
|
||||
|
||||
bool IsMovementActive;
|
||||
ObjectGuid TargetTubberGUID;
|
||||
};
|
||||
|
||||
@@ -82,7 +82,6 @@ public:
|
||||
_Reset();
|
||||
}
|
||||
|
||||
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
if (instance->GetData(DATA_BUG_TRIO_DEATH) < 2)// Unlootable if death
|
||||
|
||||
@@ -37,7 +37,6 @@ ObjectData const creatureData[] =
|
||||
{ 0, 0 } // END
|
||||
};
|
||||
|
||||
|
||||
DoorData const doorData[] =
|
||||
{
|
||||
{ AQ40_DOOR_1, DATA_SARTURA, DOOR_TYPE_PASSAGE },
|
||||
|
||||
@@ -49,8 +49,6 @@ enum RuulSnowhoof
|
||||
SAY_FINISH = 0
|
||||
};
|
||||
|
||||
|
||||
|
||||
Position const RuulSnowhoofSummonsCoord[6] =
|
||||
{
|
||||
{ 3449.218018f, -587.825073f, 174.978867f, 4.714445f },
|
||||
|
||||
@@ -126,7 +126,6 @@ struct boss_volazj : public BossAI
|
||||
if (me->HasUnitFlag(UNIT_FLAG_NOT_SELECTABLE))
|
||||
damage = 0;
|
||||
|
||||
|
||||
if ((GetHealthPct(0) >= 66 && GetHealthPct(damage) < 66)||
|
||||
(GetHealthPct(0) >= 33 && GetHealthPct(damage) < 33))
|
||||
{
|
||||
|
||||
@@ -1908,8 +1908,6 @@ class spell_halion_blazing_aura : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
void AddSC_boss_halion()
|
||||
{
|
||||
new boss_halion();
|
||||
|
||||
-1
@@ -107,7 +107,6 @@ enum Misc
|
||||
POINT_SUMMONED = 1
|
||||
};
|
||||
|
||||
|
||||
struct boss_jaraxxus : public BossAI
|
||||
{
|
||||
boss_jaraxxus(Creature* creature) : BossAI(creature, DATA_JARAXXUS) { }
|
||||
|
||||
@@ -274,7 +274,6 @@ class npc_pit_of_saron_icicle : public CreatureScript
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class spell_pos_ice_shards : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -124,7 +124,6 @@ enum Actions
|
||||
ACTION_ACQUIRE_TARGET
|
||||
};
|
||||
|
||||
|
||||
/* Room side checking logic */
|
||||
static AreaBoundary* const livingSide = new RectangleBoundary(2633.84f, 2750.49f, -3434.0f, -3360.78f);
|
||||
static AreaBoundary* const deadSide = new RectangleBoundary(2633.84f, 2750.49f, -3360.78f, -3285.0f);
|
||||
@@ -161,7 +160,6 @@ static Player* FindEligibleTarget(Creature const* me, bool isGateOpen)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
/* Wave data */
|
||||
typedef std::pair<uint32, uint8> GothikWaveEntry; // (npcEntry, npcCount)
|
||||
typedef std::set<GothikWaveEntry> GothikWave;
|
||||
@@ -286,7 +284,6 @@ const GothikWaveData waves25 =
|
||||
0}
|
||||
};
|
||||
|
||||
|
||||
// GUID of first trigger NPC (used as offset for guid checks)
|
||||
// 0-1 are living side soul triggers, 2-3 are spectral side soul triggers, 4 is living rider spawn trigger, 5-7 are living other spawn trigger, 8-12 are skull pile triggers
|
||||
const uint32 CGUID_TRIGGER = 127618;
|
||||
|
||||
@@ -122,7 +122,6 @@ enum PetMisc
|
||||
OVERLOAD_DISTANCE = 28
|
||||
};
|
||||
|
||||
|
||||
//Thaddius
|
||||
enum ThaddiusYells
|
||||
{
|
||||
@@ -1242,7 +1241,6 @@ class achievement_thaddius_shocking : public AchievementCriteriaScript
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
void AddSC_boss_thaddius()
|
||||
{
|
||||
RegisterNaxxramasCreatureAI(boss_thaddius);
|
||||
|
||||
@@ -212,7 +212,6 @@ enum NAXInstanceTexts
|
||||
SAY_DIALOGUE_SAPPHIRON_LICH_KING2 = 2
|
||||
};
|
||||
|
||||
|
||||
template <class AI, class T>
|
||||
inline AI* GetNaxxramasAI(T* obj)
|
||||
{
|
||||
|
||||
@@ -502,7 +502,6 @@ struct npc_pummeller : public ScriptedAI
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (Creature* xt002 = _instance->GetCreature(BOSS_XT002))
|
||||
xt002->AI()->JustSummoned(me);
|
||||
|
||||
|
||||
@@ -72,7 +72,6 @@ class instance_utgarde_pinnacle : public InstanceMapScript
|
||||
LoadObjectData(creatureData, gameObjectData);
|
||||
}
|
||||
|
||||
|
||||
void OnGameObjectCreate(GameObject* go) override
|
||||
{
|
||||
InstanceScript::OnGameObjectCreate(go);
|
||||
|
||||
@@ -136,7 +136,6 @@ public:
|
||||
void JustEngagedWith(Unit* /*who*/) override { }
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void JustDied(Unit* killer) override
|
||||
{
|
||||
if (!killer || killer->GetTypeId() != TYPEID_PLAYER)
|
||||
@@ -265,7 +264,6 @@ public:
|
||||
void JustEngagedWith(Unit* /*who*/) override { }
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
if (GameObject* go_caribou = ObjectAccessor::GetGameObject(*me, go_caribouGUID))
|
||||
|
||||
@@ -240,7 +240,6 @@ public:
|
||||
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void UpdateAI(uint32 /*diff*/) override
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
|
||||
@@ -445,7 +445,6 @@ public:
|
||||
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void JustSummoned(Creature* Summoned) override
|
||||
{
|
||||
Summons.Summon(Summoned);
|
||||
|
||||
@@ -164,7 +164,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/*####
|
||||
## npc_released_offspring_harkoa
|
||||
####*/
|
||||
|
||||
@@ -36,7 +36,6 @@ uint32 const ZM_GRAVEYARD_ZONE = 3521;
|
||||
// linked when the central tower is controlled
|
||||
uint32 const ZM_GRAVEYARD_ID = 969;
|
||||
|
||||
|
||||
// banners 182527, 182528, 182529, gotta check them ingame
|
||||
go_type const ZM_Banner_A = { 182527, 530, { 253.54f, 7083.81f, 36.7728f, -0.017453f }, { 0.0f, 0.0f, 0.008727f, -0.999962f } };
|
||||
go_type const ZM_Banner_H = { 182528, 530, { 253.54f, 7083.81f, 36.7728f, -0.017453f }, { 0.0f, 0.0f, 0.008727f, -0.999962f } };
|
||||
|
||||
@@ -89,7 +89,6 @@ enum Events
|
||||
EVENT_CHARGE_PLAYER
|
||||
};
|
||||
|
||||
|
||||
struct boss_gurtogg_bloodboil : public BossAI
|
||||
{
|
||||
boss_gurtogg_bloodboil(Creature* creature) : BossAI(creature, DATA_GURTOGG_BLOODBOIL)
|
||||
|
||||
@@ -2127,7 +2127,6 @@ class spell_illidan_demon_transform1 : public AuraScript
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// 40398 - Demon Transform 2
|
||||
class spell_illidan_demon_transform2 : public AuraScript
|
||||
{
|
||||
|
||||
@@ -238,7 +238,6 @@ private:
|
||||
bool _inCombat;
|
||||
};
|
||||
|
||||
|
||||
struct IllidariCouncilBossAI : public BossAI
|
||||
{
|
||||
IllidariCouncilBossAI(Creature* creature, uint32 bossId) : BossAI(creature, bossId), _bossId(bossId)
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "black_temple.h"
|
||||
#include "ScriptedCreature.h"
|
||||
|
||||
@@ -198,7 +198,6 @@ static float const MIDDLE_OF_ROOM = 400.0f;
|
||||
static float const FACE_THE_DOOR = 0.08726646f;
|
||||
static float const FACE_THE_PLATFORM = 3.118662f;
|
||||
|
||||
|
||||
struct boss_shade_of_akama : public BossAI
|
||||
{
|
||||
boss_shade_of_akama(Creature* creature) : BossAI(creature, DATA_SHADE_OF_AKAMA)
|
||||
@@ -795,7 +794,6 @@ struct npc_ashtongue_defender : public ScriptedAI
|
||||
_events.ScheduleEvent(EVENT_WINDFURY, 8s, 12s);
|
||||
}
|
||||
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
|
||||
-1
@@ -68,7 +68,6 @@ enum HydrossTheUnstable
|
||||
ENTRY_BEAM_DUMMY = 21934
|
||||
};
|
||||
|
||||
|
||||
#define HYDROSS_X -239.439f
|
||||
#define HYDROSS_Y -363.481f
|
||||
|
||||
|
||||
@@ -603,7 +603,6 @@ public:
|
||||
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (!VashjGUID)
|
||||
@@ -853,7 +852,6 @@ public:
|
||||
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (CheckTimer <= diff)
|
||||
|
||||
@@ -45,7 +45,6 @@ enum Spells
|
||||
SPELL_SUBMERGE = 37550,
|
||||
SPELL_EMERGE = 20568,
|
||||
|
||||
|
||||
// Ambusher spells
|
||||
SPELL_SPREAD_SHOT = 37790,
|
||||
SPELL_SHOOT = 37770,
|
||||
|
||||
@@ -49,7 +49,6 @@ enum Misc
|
||||
MIN_KILLS = 30
|
||||
};
|
||||
|
||||
|
||||
//NOTE: there are 6 platforms
|
||||
//there should be 3 shatterers and 2 priestess on all platforms, total of 30 elites, else it won't work!
|
||||
//delete all other elites not on platforms! these mobs should only be on those platforms nowhere else.
|
||||
|
||||
@@ -148,7 +148,6 @@ public:
|
||||
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void AttackStart(Unit* /*who*/) override { }
|
||||
|
||||
void JustEngagedWith(Unit* /*who*/) override { }
|
||||
|
||||
@@ -279,7 +279,6 @@ class instance_shattered_halls : public InstanceMapScript
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
void AddSC_instance_shattered_halls()
|
||||
{
|
||||
new instance_shattered_halls();
|
||||
|
||||
@@ -648,7 +648,6 @@ class npc_simon_bunny : public CreatureScript
|
||||
playableSequence.push_back(*i);
|
||||
}
|
||||
|
||||
|
||||
// Remove any existant glowing auras over clusters and set clusters ready for interating with them.
|
||||
void PrepareClusters(bool clustersOnly = false)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,6 @@ class npc_pet_shaman_earth_elemental : public CreatureScript
|
||||
{
|
||||
npc_pet_shaman_earth_elementalAI(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
_events.Reset();
|
||||
|
||||
@@ -196,7 +196,6 @@ class spell_dh_chaos_strike : public AuraScript
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// 206416 - First Blood
|
||||
class spell_dh_first_blood : public AuraScript
|
||||
{
|
||||
@@ -458,14 +457,12 @@ void AddSC_demon_hunter_spell_scripts()
|
||||
|
||||
/* Spells & Auras */
|
||||
|
||||
|
||||
/* Auras */
|
||||
|
||||
RegisterSpellScript(spell_dh_first_blood);
|
||||
|
||||
/* AreaTrigger */
|
||||
|
||||
|
||||
/* Spells */
|
||||
|
||||
RegisterSpellScript(spell_dh_blade_dance);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user