[8075] Effect at remove for aura of spell 42783.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
NoFantasy 2009-06-24 05:28:44 +04:00 committed by tomrus88
parent 93d3edfc15
commit 4baf32d05f
2 changed files with 17 additions and 4 deletions

View file

@ -4161,10 +4161,23 @@ void Aura::HandleAuraModStalked(bool apply, bool /*Real*/)
void Aura::HandlePeriodicTriggerSpell(bool apply, bool /*Real*/) void Aura::HandlePeriodicTriggerSpell(bool apply, bool /*Real*/)
{ {
m_isPeriodic = apply; m_isPeriodic = apply;
if (m_spellProto->Id == 66 && !apply)
if (!apply)
{ {
switch(m_spellProto->Id)
{
case 66: // Invisibility
if (m_removeMode == AURA_REMOVE_BY_DEFAULT && m_duration<=0) if (m_removeMode == AURA_REMOVE_BY_DEFAULT && m_duration<=0)
m_target->CastSpell(m_target, 32612, true, NULL, this); m_target->CastSpell(m_target, 32612, true, NULL, this);
return;
case 42783: //Wrath of the Astrom...
if (m_removeMode == AURA_REMOVE_BY_DEFAULT && GetEffIndex() + 1 < 3)
m_target->CastSpell(m_target, m_spellProto->CalculateSimpleValue(GetEffIndex()+1), true);
return;
default:
break;
}
} }
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8074" #define REVISION_NR "8075"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__