mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Scripts/Commands: Set worldstate when using .debug worldstate instead of just sending packet
This commit is contained in:
@@ -516,7 +516,8 @@ public:
|
|||||||
|
|
||||||
static bool HandleDebugUpdateWorldStateCommand(ChatHandler* handler, uint32 variable, uint32 value)
|
static bool HandleDebugUpdateWorldStateCommand(ChatHandler* handler, uint32 variable, uint32 value)
|
||||||
{
|
{
|
||||||
handler->GetPlayer()->SendUpdateWorldState(variable, value);
|
Map* map = handler->GetPlayer()->GetMap();
|
||||||
|
map->SetWorldStateValue(variable, value, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user