mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Update HookMgr.cpp
This commit is contained in:
@@ -1223,7 +1223,7 @@ bool HookMgr::OnPacketSend(WorldSession* session, WorldPacket& packet)
|
|||||||
WorldPacket* data = sEluna->CHECKOBJ<WorldPacket>(sEluna->L, i, false);
|
WorldPacket* data = sEluna->CHECKOBJ<WorldPacket>(sEluna->L, i, false);
|
||||||
if (data)
|
if (data)
|
||||||
packet = *data;
|
packet = *data;
|
||||||
if (!sEluna->CHECKOBJ<bool>(sEluna->L, i, true))
|
if (!sEluna->CHECKVAL<bool>(sEluna->L, i, true))
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
sEluna->ServerEventBindings.EndCall();
|
sEluna->ServerEventBindings.EndCall();
|
||||||
@@ -1240,7 +1240,7 @@ bool HookMgr::OnPacketSend(WorldSession* session, WorldPacket& packet)
|
|||||||
WorldPacket* data = sEluna->CHECKOBJ<WorldPacket>(sEluna->L, i, false);
|
WorldPacket* data = sEluna->CHECKOBJ<WorldPacket>(sEluna->L, i, false);
|
||||||
if (data)
|
if (data)
|
||||||
packet = *data;
|
packet = *data;
|
||||||
if (!sEluna->CHECKOBJ<bool>(sEluna->L, i, true))
|
if (!sEluna->CHECKVAL<bool>(sEluna->L, i, true))
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
sEluna->PacketEventBindings.EndCall();
|
sEluna->PacketEventBindings.EndCall();
|
||||||
@@ -1266,7 +1266,7 @@ bool HookMgr::OnPacketReceive(WorldSession* session, WorldPacket& packet)
|
|||||||
WorldPacket* data = sEluna->CHECKOBJ<WorldPacket>(sEluna->L, i, false);
|
WorldPacket* data = sEluna->CHECKOBJ<WorldPacket>(sEluna->L, i, false);
|
||||||
if (data)
|
if (data)
|
||||||
packet = *data;
|
packet = *data;
|
||||||
if (!sEluna->CHECKOBJ<bool>(sEluna->L, i, true))
|
if (!sEluna->CHECKVAL<bool>(sEluna->L, i, true))
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
sEluna->ServerEventBindings.EndCall();
|
sEluna->ServerEventBindings.EndCall();
|
||||||
|
|||||||
Reference in New Issue
Block a user