mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Nopch fix
This commit is contained in:
@@ -4485,3 +4485,9 @@ Unit* SmartScript::GetLastInvoker(Unit* invoker)
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void SmartScript::IncPhase(uint32 p)
|
||||
{
|
||||
// protect phase from overflowing
|
||||
mEventPhase = std::min<uint32>(SMART_EVENT_PHASE_12, mEventPhase + p);
|
||||
}
|
||||
|
||||
@@ -97,12 +97,7 @@ class TC_GAME_API SmartScript
|
||||
CounterMap mCounterList;
|
||||
|
||||
private:
|
||||
void IncPhase(uint32 p)
|
||||
{
|
||||
// protect phase from overflowing
|
||||
mEventPhase = std::min<uint32>(SMART_EVENT_PHASE_12, mEventPhase + p);
|
||||
}
|
||||
|
||||
void IncPhase(uint32 p);
|
||||
void DecPhase(uint32 p)
|
||||
{
|
||||
if (p >= mEventPhase)
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "Optional.h"
|
||||
#include "PacketUtilities.h"
|
||||
#include "Position.h"
|
||||
#include <array>
|
||||
|
||||
namespace WorldPackets
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user