[7838] More fixes in pet's levelup spells.
commit599252b3c6e0535f638bfcf522b5108b60e70ac6
authorVladimirMangos <vladimir@getmangos.com>
Sat, 16 May 2009 13:01:03 +0000 (16 17:01 +0400)
committerVladimirMangos <vladimir@getmangos.com>
Sat, 16 May 2009 13:15:45 +0000 (16 17:15 +0400)
tree9aeb42b6cceed4758d376f066ef9d0fcc54bcac2
parent909aedccabdf88a025935df82b21ac8dc82cb5c5
[7838] More fixes in pet's levelup spells.

* Fixed not updating levelup spells at warlock pet summon firsy time (overwriting by default original ranks in fact)
* Correctly upgrade/doungrade spell ranks in action bar.
* Fixed spell learning spam at warlock pet re-summon in some cases.

TODO: currently (before this commit and in it) PetSpellInitialize() called too oftern. Maybe possible cache update flag and do it one time somewhere in Pet::Update....
src/game/Level3.cpp
src/game/Pet.cpp
src/game/Pet.h
src/game/SpellEffects.cpp
src/game/Unit.cpp
src/shared/revision_nr.h