mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
*Moved Glyph of Polymorph in Unit::HandleDummyAuraProc
--HG-- branch : trunk
This commit is contained in:
2
sql/updates/4738_world_spell_proc_event.sql
Normal file
2
sql/updates/4738_world_spell_proc_event.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DELETE FROM `spell_proc_event` WHERE (`entry`='56375');
|
||||
INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`procFlags`) VALUES ('56375','0','3',0x01000000,0x00010000);
|
||||
@@ -965,15 +965,9 @@ void Aura::HandleAuraSpecificMods(bool apply)
|
||||
// Todo: This should be moved to similar function in spell::hit
|
||||
else if (m_spellProto->SpellFamilyFlags[0] & 0x01000000)
|
||||
{
|
||||
// Glyph of Polymorph
|
||||
Unit * caster = GetCaster();
|
||||
if (!caster)
|
||||
return;
|
||||
if (caster->HasAura(56375))
|
||||
{
|
||||
m_target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
|
||||
m_target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT);
|
||||
}
|
||||
|
||||
// Polymorph Sound - Sheep && Penguin
|
||||
if (m_spellProto->SpellIconID == 82 && m_spellProto->SpellVisual[0] == 12978)
|
||||
|
||||
@@ -5447,11 +5447,20 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
}
|
||||
switch(dummySpell->Id)
|
||||
{
|
||||
// Glyph of Polymorph
|
||||
case 56375:
|
||||
{
|
||||
target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
|
||||
target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT);
|
||||
return true;
|
||||
}
|
||||
// Glyph of Icy Veins
|
||||
case 56374:
|
||||
{
|
||||
RemoveAurasByType(SPELL_AURA_MOD_HASTE, 0, 0, true, false);
|
||||
RemoveAurasByType(SPELL_AURA_MOD_DECREASE_SPEED);
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
// Ignite
|
||||
case 11119:
|
||||
case 11120:
|
||||
|
||||
Reference in New Issue
Block a user