mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 13:37:08 +00:00
[7125] Work under pet talents
Coorrect update Talent Points on levelup / leveldown Unlearn other ranks of learned talent Fix typo in Pet::HasSpell (wrong result for removed spell) Allow .reset talents reset pet talent Implement SPELL_AURA_MOD_PET_TALENT_POINTS aura (hunter talent) Only reset pet talent from trainer unlearn. Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
ca7ac74134
commit
921914f87e
10 changed files with 225 additions and 72 deletions
|
|
@ -195,8 +195,8 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
|
|||
&Aura::HandleAuraModBaseResistancePCT, //142 SPELL_AURA_MOD_BASE_RESISTANCE_PCT
|
||||
&Aura::HandleAuraModResistanceExclusive, //143 SPELL_AURA_MOD_RESISTANCE_EXCLUSIVE
|
||||
&Aura::HandleNoImmediateEffect, //144 SPELL_AURA_SAFE_FALL implemented in WorldSession::HandleMovementOpcodes
|
||||
&Aura::HandleUnused, //145 SPELL_AURA_CHARISMA obsolete?
|
||||
&Aura::HandleUnused, //146 SPELL_AURA_PERSUADED obsolete?
|
||||
&Aura::HandleAuraModPetTalentsPoints, //145 SPELL_AURA_MOD_PET_TALENT_POINTS
|
||||
&Aura::HandleNoImmediateEffect, //146 SPELL_AURA_ALLOW_TAME_PET_TYPE
|
||||
&Aura::HandleNULL, //147 SPELL_AURA_ADD_CREATURE_IMMUNITY
|
||||
&Aura::HandleAuraRetainComboPoints, //148 SPELL_AURA_RETAIN_COMBO_POINTS
|
||||
&Aura::HandleNoImmediateEffect, //149 SPELL_AURA_RESIST_PUSHBACK
|
||||
|
|
@ -3122,6 +3122,16 @@ void Aura::HandleModPossessPet(bool apply, bool Real)
|
|||
}
|
||||
}
|
||||
|
||||
void Aura::HandleAuraModPetTalentsPoints(bool Apply, bool Real)
|
||||
{
|
||||
if(!Real)
|
||||
return;
|
||||
|
||||
// Recalculate pet tlaent points
|
||||
if (Pet *pet=m_target->GetPet())
|
||||
pet->InitTalentForLevel();
|
||||
}
|
||||
|
||||
void Aura::HandleModCharm(bool apply, bool Real)
|
||||
{
|
||||
if(!Real)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue