mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[12006] Implement Aura 304 as SPELL_AURA_FAKE_INEBRIATE
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
a71dfd84a7
commit
05a33ee04e
4 changed files with 23 additions and 3 deletions
|
|
@ -339,7 +339,7 @@ enum AuraType
|
|||
SPELL_AURA_HEAL_ABSORB = 301,
|
||||
SPELL_AURA_302 = 302,
|
||||
SPELL_AURA_303 = 303,
|
||||
SPELL_AURA_304 = 304,
|
||||
SPELL_AURA_FAKE_INEBRIATE = 304,
|
||||
SPELL_AURA_MOD_MINIMUM_SPEED = 305,
|
||||
SPELL_AURA_306 = 306,
|
||||
SPELL_AURA_307 = 307,
|
||||
|
|
|
|||
|
|
@ -355,7 +355,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
|
|||
&Aura::HandleNULL, //301 SPELL_AURA_HEAL_ABSORB 5 spells
|
||||
&Aura::HandleUnused, //302 unused (3.2.2a)
|
||||
&Aura::HandleNULL, //303 17 spells
|
||||
&Aura::HandleNULL, //304 2 spells (alcohol effect?)
|
||||
&Aura::HandleAuraFakeInebriation, //304 SPELL_AURA_FAKE_INEBRIATE
|
||||
&Aura::HandleAuraModIncreaseSpeed, //305 SPELL_AURA_MOD_MINIMUM_SPEED
|
||||
&Aura::HandleNULL, //306 1 spell
|
||||
&Aura::HandleNULL, //307 absorb healing?
|
||||
|
|
@ -4835,6 +4835,25 @@ void Aura::HandleModTaunt(bool apply, bool Real)
|
|||
}
|
||||
}
|
||||
|
||||
void Aura::HandleAuraFakeInebriation(bool apply, bool Real)
|
||||
{
|
||||
// all applied/removed only at real aura add/remove
|
||||
if (!Real)
|
||||
return;
|
||||
|
||||
Unit* target = GetTarget();
|
||||
|
||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
int32 point = target->GetInt32Value(PLAYER_FAKE_INEBRIATION);
|
||||
point += (apply ? 1 : -1) * GetBasePoints();
|
||||
|
||||
target->SetInt32Value(PLAYER_FAKE_INEBRIATION, point);
|
||||
}
|
||||
|
||||
target->UpdateObjectVisibility();
|
||||
}
|
||||
|
||||
/*********************************************************/
|
||||
/*** MODIFY SPEED ***/
|
||||
/*********************************************************/
|
||||
|
|
|
|||
|
|
@ -269,6 +269,7 @@ class MANGOS_DLL_SPEC Aura
|
|||
void HandleAuraModSilence(bool Apply, bool Real);
|
||||
void HandleAuraModStat(bool Apply, bool Real);
|
||||
void HandleDetectAmore(bool Apply, bool Real);
|
||||
void HandleAuraFakeInebriation(bool Apply, bool Real);
|
||||
void HandleAuraModIncreaseSpeed(bool Apply, bool Real);
|
||||
void HandleAuraModIncreaseMountedSpeed(bool Apply, bool Real);
|
||||
void HandleAuraModIncreaseFlightSpeed(bool Apply, bool Real);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12005"
|
||||
#define REVISION_NR "12006"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue