mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
*Move beast within bonus auras to sql.
--HG-- branch : trunk
This commit is contained in:
@@ -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'),
|
||||
|
||||
11
sql/updates/4862_world_linked_spell.sql
Normal file
11
sql/updates/4862_world_linked_spell.sql
Normal 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');
|
||||
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user