mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[10236] Implement SPELL_AURA_OPEN_STABLE (292).
(based on Wowka321's repo commit 213ceb0) Signed-off-by: VladimirMangos <vladimir@getmangos.com> Rewrited partly.
This commit is contained in:
parent
e7093e3ebb
commit
d7b6840634
6 changed files with 50 additions and 19 deletions
|
|
@ -342,7 +342,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
|
|||
&Aura::HandleUnused, //289 unused (3.2.2a)
|
||||
&Aura::HandleAuraModAllCritChance, //290 SPELL_AURA_MOD_ALL_CRIT_CHANCE
|
||||
&Aura::HandleNoImmediateEffect, //291 SPELL_AURA_MOD_QUEST_XP_PCT implemented in Player::GiveXP
|
||||
&Aura::HandleNULL, //292 call stabled pet
|
||||
&Aura::HandleAuraOpenStable, //292 call stabled pet
|
||||
&Aura::HandleNULL, //293 3 spells
|
||||
&Aura::HandleNULL, //294 2 spells, possible prevent mana regen
|
||||
&Aura::HandleUnused, //295 unused (3.2.2a)
|
||||
|
|
@ -7431,6 +7431,19 @@ void Aura::HandleAuraControlVehicle(bool apply, bool Real)
|
|||
}
|
||||
}
|
||||
|
||||
void Aura::HandleAuraOpenStable(bool apply, bool Real)
|
||||
{
|
||||
if(!Real || GetTarget()->GetTypeId() != TYPEID_PLAYER || !GetTarget()->IsInWorld())
|
||||
return;
|
||||
|
||||
Player* player = (Player*)GetTarget();
|
||||
|
||||
if (apply)
|
||||
player->GetSession()->SendStablePet(player->GetObjectGuid());
|
||||
|
||||
// client auto close stable dialog at !apply aura
|
||||
}
|
||||
|
||||
void Aura::HandleAuraConvertRune(bool apply, bool Real)
|
||||
{
|
||||
if(!Real)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue