*Moved Glyph of Polymorph in Unit::HandleDummyAuraProc

--HG--
branch : trunk
This commit is contained in:
Nevan
2009-08-03 19:19:58 +02:00
parent 7569bb343a
commit 044b8b44a3
3 changed files with 12 additions and 7 deletions

View 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);

View File

@@ -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)

View File

@@ -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: