Implement aura 304.
--HG-- branch : trunk
This commit is contained in:
@@ -349,7 +349,7 @@ enum AuraType
|
|||||||
SPELL_AURA_301 = 301,
|
SPELL_AURA_301 = 301,
|
||||||
SPELL_AURA_302 = 302,
|
SPELL_AURA_302 = 302,
|
||||||
SPELL_AURA_303 = 303,
|
SPELL_AURA_303 = 303,
|
||||||
SPELL_AURA_304 = 304,
|
SPELL_AURA_MOD_INEBRIATION = 304,
|
||||||
SPELL_AURA_MOD_MINIMUM_SPEED = 305,
|
SPELL_AURA_MOD_MINIMUM_SPEED = 305,
|
||||||
SPELL_AURA_306 = 306,
|
SPELL_AURA_306 = 306,
|
||||||
TOTAL_AURAS = 307
|
TOTAL_AURAS = 307
|
||||||
|
|||||||
@@ -357,7 +357,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
|
|||||||
&Aura::HandleNULL, //301 5 spells
|
&Aura::HandleNULL, //301 5 spells
|
||||||
&Aura::HandleNULL, //302 unused
|
&Aura::HandleNULL, //302 unused
|
||||||
&Aura::HandleNULL, //303 17 spells
|
&Aura::HandleNULL, //303 17 spells
|
||||||
&Aura::HandleNULL, //304 2 spells (alcohol effect?)
|
&Aura::HandleAuraModInebriation, //304 2 spells
|
||||||
&Aura::HandleAuraModIncreaseSpeed, //305 SPELL_AURA_MOD_MINIMUM_SPEED
|
&Aura::HandleAuraModIncreaseSpeed, //305 SPELL_AURA_MOD_MINIMUM_SPEED
|
||||||
&Aura::HandleNULL //306 1 spell
|
&Aura::HandleNULL //306 1 spell
|
||||||
};
|
};
|
||||||
@@ -7302,3 +7302,11 @@ bool AuraEffect::IsPeriodicTickCrit(Unit const * pCaster) const
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AuraEffect::HandleAuraModInebriation(bool apply, bool Real, bool /*changeAmount*/)
|
||||||
|
{
|
||||||
|
if(m_target->GetTypeId() != TYPEID_PLAYER)
|
||||||
|
return;
|
||||||
|
|
||||||
|
m_target->SetUInt32Value(PLAYER_FAKE_INEBRIATION, apply ? ((uint32)1)<<(GetMiscValue()-1) : 0 );
|
||||||
|
}
|
||||||
|
|||||||
@@ -333,6 +333,7 @@ class TRINITY_DLL_SPEC AuraEffect
|
|||||||
void HandleAuraCloneCaster(bool Apply, bool Real, bool changeAmount);
|
void HandleAuraCloneCaster(bool Apply, bool Real, bool changeAmount);
|
||||||
void HandleAuraModCritPct(bool Apply, bool Real, bool changeAmount);
|
void HandleAuraModCritPct(bool Apply, bool Real, bool changeAmount);
|
||||||
void HandleAuraLinked(bool Apply, bool Real, bool changeAmount);
|
void HandleAuraLinked(bool Apply, bool Real, bool changeAmount);
|
||||||
|
void HandleAuraModInebriation(bool apply, bool Real, bool changeAmount);
|
||||||
|
|
||||||
void HandleAuraEffectSpecificMods(bool apply, bool Real, bool changeAmount);
|
void HandleAuraEffectSpecificMods(bool apply, bool Real, bool changeAmount);
|
||||||
int32 CalculateCrowdControlAuraAmount(Unit * caster);
|
int32 CalculateCrowdControlAuraAmount(Unit * caster);
|
||||||
|
|||||||
Reference in New Issue
Block a user