Implement aura 304.

--HG--
branch : trunk
This commit is contained in:
win32
2009-12-21 15:52:02 +02:00
parent c92fbc0dfb
commit 636018ca7e
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -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
+10 -2
View File
@@ -347,7 +347,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
&Aura::HandleNoImmediateEffect, //291 SPELL_AURA_MOD_XP_QUEST_PCT implemented in Player::RewardQuest &Aura::HandleNoImmediateEffect, //291 SPELL_AURA_MOD_XP_QUEST_PCT implemented in Player::RewardQuest
&Aura::HandleNULL, //292 call stabled pet &Aura::HandleNULL, //292 call stabled pet
&Aura::HandleNULL, //293 2 test spells &Aura::HandleNULL, //293 2 test spells
&Aura::HandleNoImmediateEffect, //294 SPELL_AURA_PREVENT_REGENERATE_POWER implemented in Player::Regenerate(Powers power) &Aura::HandleNoImmediateEffect, //294 SPELL_AURA_PREVENT_REGENERATE_POWER implemented in Player::Regenerate(Powers power)
&Aura::HandleNULL, //295 unused &Aura::HandleNULL, //295 unused
&Aura::HandleNULL, //296 2 spells &Aura::HandleNULL, //296 2 spells
&Aura::HandleNULL, //297 1 spell (counter spell school?) &Aura::HandleNULL, //297 1 spell (counter spell school?)
@@ -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 );
}
+1
View File
@@ -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);