diff options
| author | megamage <none@none> | 2009-04-19 19:45:54 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-19 19:45:54 -0500 |
| commit | 68fd41d2c8990459ca1d82ab82d53cb78d03dd49 (patch) | |
| tree | e2a2e20de43f864e4818b45425440bb3517c472f /src/game/Player.cpp | |
| parent | e1806419be36ac8a1b6b1ea377cfba20b36db720 (diff) | |
*Fix a bug that pet/charmed cannot AOE neutral creatures.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index bfe682db204..29bf8b68ce2 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -472,6 +472,8 @@ Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputa m_lastFallTime = 0; m_lastFallZ = 0; + + m_ControlledByPlayer = true; } Player::~Player () @@ -14460,11 +14462,11 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder ) SetUInt32Value(UNIT_CHANNEL_SPELL,0); // clear charm/summon related fields + SetUInt64Value(UNIT_FIELD_SUMMONEDBY, 0); + SetUInt64Value(UNIT_FIELD_CHARMEDBY, 0); SetUInt64Value(UNIT_FIELD_CHARM, 0); SetUInt64Value(UNIT_FIELD_SUMMON, 0); SetUInt64Value(PLAYER_FARSIGHT, 0); - SetCharmerGUID(0); - SetOwnerGUID(0); SetCreatorGUID(0); // reset some aura modifiers before aura apply |
