*Move beast within bonus auras to sql.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-09 16:28:24 -05:00
parent 2c4dad27db
commit 61b4b86d28
3 changed files with 19 additions and 20 deletions

View File

@@ -72,6 +72,14 @@ INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comm
( 20594, 65116, 0, 'Stoneform'),
( 49039, 50397, 2, 'Lichborne - shapeshift'),
( 64382, 64380, 0, 'Shattering Throw'),
( 19574, 24395, 2, 'Beast Within'),
( 19574, 24396, 2, 'Beast Within'),
( 19574, 24397, 2, 'Beast Within'),
( 19574, 26592, 2, 'Beast Within'),
( 34471, 24395, 2, 'Beast Within'),
( 34471, 24396, 2, 'Beast Within'),
( 34471, 24397, 2, 'Beast Within'),
( 34471, 26592, 2, 'Beast Within'),
-- Creature
( 36574, 36650, 0, 'Apply Phase Slip Vulnerability'),

View File

@@ -0,0 +1,11 @@
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (19574,34471);
INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`)
VALUES
( 19574, 24395, 2, 'Beast Within'),
( 19574, 24396, 2, 'Beast Within'),
( 19574, 24397, 2, 'Beast Within'),
( 19574, 26592, 2, 'Beast Within'),
( 34471, 24395, 2, 'Beast Within'),
( 34471, 24396, 2, 'Beast Within'),
( 34471, 24397, 2, 'Beast Within'),
( 34471, 26592, 2, 'Beast Within');

View File

@@ -4215,26 +4215,6 @@ void AuraEffect::HandleModMechanicImmunity(bool apply, bool Real, bool /*changeA
}
}
}
// The Beast Within and Bestial Wrath - immunity
if(GetId() == 19574 || GetId() == 34471)
{
if(apply)
{
m_target->CastSpell(m_target,24395,true, NULL, this);
m_target->CastSpell(m_target,24396,true, NULL, this);
m_target->CastSpell(m_target,24397,true, NULL, this);
m_target->CastSpell(m_target,26592,true, NULL, this);
}
else
{
m_target->RemoveAurasDueToSpell(24395);
m_target->RemoveAurasDueToSpell(24396);
m_target->RemoveAurasDueToSpell(24397);
m_target->RemoveAurasDueToSpell(26592);
}
}
// Heroic Fury (remove Intercept cooldown)
else if( apply && GetId() == 60970 && m_target->GetTypeId() == TYPEID_PLAYER )
{