[8147] Some fixes and cleanups in mind control and charmed code. Mind control stil...
commit6f1c1b2d8662fccf3052fd2dd0294a83fa73ad88
authorVladimirMangos <vladimir@getmangos.com>
Wed, 8 Jul 2009 13:50:02 +0000 (8 17:50 +0400)
committerVladimirMangos <vladimir@getmangos.com>
Wed, 8 Jul 2009 16:09:33 +0000 (8 20:09 +0400)
treefc158657b8f19399d1e88f5eeff408bcdf00f44c
parent67621f48703e3be75c9189e8271500c39f119b59
[8147] Some fixes and cleanups in mind control and charmed code. Mind control stil not finished.

* Allow command to mind controlled unit attack target at client. Rename related flag to UNIT_FLAG_PLAYER_CONTROLLED.
* Move code for pet action bar remove at client side to new function Player::RemovePetActionBar
* Not allow cast spells with SPELL_AURA_MOD_POSSESS and SPELL_AURA_MOD_POSSESS_PET by non-players and simplify related code base at this.
src/game/PetAI.cpp
src/game/Player.cpp
src/game/Player.h
src/game/Spell.cpp
src/game/SpellAuras.cpp
src/game/Unit.h
src/shared/revision_nr.h