mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix(Core): Fix waterwalking after dying in instance (#23593)
This commit is contained in:
@@ -156,13 +156,13 @@ public:
|
||||
if (enable)
|
||||
{
|
||||
handler->GetSession()->GetPlayer()->SetCommandStatusOn(CHEAT_WATERWALK);
|
||||
handler->GetSession()->GetPlayer()->SetMovement(MOVE_WATER_WALK); // ON
|
||||
handler->GetSession()->GetPlayer()->SetWaterWalking(true); // ON
|
||||
handler->SendSysMessage("Waterwalking is ON. You can walk on water.");
|
||||
}
|
||||
else
|
||||
{
|
||||
handler->GetSession()->GetPlayer()->SetCommandStatusOff(CHEAT_WATERWALK);
|
||||
handler->GetSession()->GetPlayer()->SetMovement(MOVE_LAND_WALK); // OFF
|
||||
handler->GetSession()->GetPlayer()->SetWaterWalking(false); // OFF
|
||||
handler->SendSysMessage("Waterwalking is OFF. You can't walk on water.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user