diff options
| author | azazel <none@none> | 2010-12-09 17:03:42 +0600 |
|---|---|---|
| committer | azazel <none@none> | 2010-12-09 17:03:42 +0600 |
| commit | e7eb4e22e2e6b990a11a3fbe55379f0949b02af0 (patch) | |
| tree | bfb801890ce283123343bfd8407bb4b4e9359467 /src/server/game/Chat/Commands | |
| parent | 8c2ce7f86d85b5961998af74b08ed6d579ab3de6 (diff) | |
Core/Mechanics: cleanup shapeshift form code (by VladimirMangos)
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Chat/Commands')
| -rwxr-xr-x | src/server/game/Chat/Commands/Level3.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp index b4ab794c44b..5c321be6e08 100755 --- a/src/server/game/Chat/Commands/Level3.cpp +++ b/src/server/game/Chat/Commands/Level3.cpp @@ -2504,7 +2504,7 @@ static bool HandleResetStatsOrLevelHelper(Player* player) // reset m_form if no aura if (!player->HasAuraType(SPELL_AURA_MOD_SHAPESHIFT)) - player->m_form = FORM_NONE; + player->SetShapeshiftForm(FORM_NONE); player->SetFloatValue(UNIT_FIELD_BOUNDINGRADIUS, DEFAULT_WORLD_OBJECT_SIZE); player->SetFloatValue(UNIT_FIELD_COMBATREACH, DEFAULT_COMBAT_REACH); @@ -2514,11 +2514,10 @@ static bool HandleResetStatsOrLevelHelper(Player* player) player->SetUInt32Value(UNIT_FIELD_BYTES_0, ((player->getRace()) | (player->getClass() << 8) | (player->getGender() << 16) | (powertype << 24))); // reset only if player not in some form; - if (player->m_form == FORM_NONE) + if (player->GetShapeshiftForm() == FORM_NONE) player->InitDisplayIds(); player->SetByteValue(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_PVP); - player->SetByteValue(UNIT_FIELD_BYTES_2, 3, player->m_form); player->SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE); |
