aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_cheat.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_cheat.cpp b/src/server/scripts/Commands/cs_cheat.cpp
index 04850f949c7..dc046c0d2b5 100644
--- a/src/server/scripts/Commands/cs_cheat.cpp
+++ b/src/server/scripts/Commands/cs_cheat.cpp
@@ -152,7 +152,11 @@ public:
}
else if (argstr == "on")
{
- handler->GetSession()->GetPlayer()->SetCommandStatusOn(CHEAT_POWER);
+ Player* player = handler->GetSession()->GetPlayer();
+ // Set max power to all powers
+ for (uint32 i = 0; i < MAX_POWERS; ++i)
+ player->SetPower(Powers(i), player->GetMaxPower(Powers(i)));
+ player->SetCommandStatusOn(CHEAT_POWER);
handler->SendSysMessage("Power Cheat is ON. You don't need mana/rage/energy to use spells.");
return true;
}