aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-06 20:31:23 -0500
committermegamage <none@none>2009-06-06 20:31:23 -0500
commitebfb4c05586498e9a2796bd64b923a82bbeb7004 (patch)
treee13aa0c3c6232b194f84e9aacf491b2d0ad5fb58 /src/game/Player.cpp
parent724e5fe5ce7c91f9f144602a94720a33da845777 (diff)
[7971] Implement support exotic pets limtations related to hunter telent 53270. Author: VladimirMangos
Note: before this commit hunters can tame exotic pets like any other. After patch like not propertly contriolled pets will auto-dismiss at loading if talent not learned. --HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 4f0bd135df3..8bbb27a61d9 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -3558,6 +3558,14 @@ bool Player::resetTalents(bool no_cost)
//FIXME: remove pet before or after unlearn spells? for now after unlearn to allow removing of talent related, pet affecting auras
RemovePet(NULL,PET_SAVE_NOT_IN_SLOT, true);
+ /* when prev line will dropped use next line
+ if(Pet* pet = GetPet())
+ {
+ if(pet->getPetType()==HUNTER_PET && !pet->GetCreatureInfo()->isTameable(CanTameExoticPets()))
+ RemovePet(NULL,PET_SAVE_NOT_IN_SLOT, true);
+ }
+ */
+
if(m_canTitanGrip)
{