aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-01 16:46:57 -0600
committermegamage <none@none>2009-02-01 16:46:57 -0600
commit05c07aa74a38e73006ba7106574290179942692c (patch)
tree70cd33698562658805c3643c22890ce23263c3a8 /src/game/Creature.cpp
parentcd0071ae620f2634f609df8b83b24687f073733e (diff)
[7214] Phase system continue development - Commands and fixes.
* Fixed creature/gameobject save from game (used in commands code only) * Implement .modify phase (for player), .npc setphase (for creature/pet), .gobject phase (for gameobjects) commands for set phasemask of selected object. In player/pet case temporary until in game phase switch/re-login/GM-mode change. In creature/gameobject case change saved in DB. * Add to .gps output phasemask value print. Allow use .gps command with creature/gameobject shift-link (work for objects loaded in game in command time). Author: VladimirMangos --HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index d77e053a5e3..8134cd71de5 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -1245,6 +1245,7 @@ void Creature::SaveToDB(uint32 mapid, uint8 spawnMask, uint32 phaseMask)
<< GetEntry() << ","
<< mapid <<","
<< (uint32)spawnMask << ","
+ << (uint32)GetPhaseMask() << ","
<< displayId <<","
<< GetEquipmentId() <<","
<< GetPositionX() << ","