Added checking global cooldown for pet autocast spells.
commitfa072d15107b44344af8c9ef686839984e241a1b
authorApoC <apoc@nymfe.net>
Mon, 27 Oct 2008 21:36:42 +0000 (27 22:36 +0100)
committerApoC <apoc@nymfe.net>
Tue, 28 Oct 2008 20:31:41 +0000 (28 21:31 +0100)
treedd224d2cf9de67706e2d4883da133fae308b08d8
parent633d99ba036dc919cb8872c3005b9ab8ced06177
Added checking global cooldown for pet autocast spells.
Added checking global cooldown for pet spell casting triggered by master.
Optimized PetAI::UpdateAI:
 - Removed obsolete victim_guid as combat check.
 - Stop pet combat when pet die in JustDied(Unit*) method.
 - Optimized autospells selection and casting.

Signed-off-by: ApoC <apoc@nymfe.net>
src/game/Creature.h
src/game/PetAI.cpp
src/game/PetAI.h
src/game/PetHandler.cpp