[7499] Implement post effect for DoT spell 41917

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Seline 2009-03-19 22:38:27 +03:00 committed by VladimirMangos
parent 5a2c08ed7f
commit ebd292a226
2 changed files with 136 additions and 126 deletions

View file

@ -4244,7 +4244,9 @@ void Aura::HandlePeriodicDamage(bool apply, bool Real)
bool loading = (m_target->GetTypeId() == TYPEID_PLAYER && ((Player*)m_target)->GetSession()->PlayerLoading());
// Custom damage calculation after
if (!apply || loading)
if (apply)
{
if(loading)
return;
Unit *caster = GetCaster();
@ -4381,6 +4383,14 @@ void Aura::HandlePeriodicDamage(bool apply, bool Real)
default:
break;
}
}
// remove time effects
else
{
// Parasitic Shadowfiend - handle summoning of two Shadowfiends on DoT expire
if(m_spellProto->Id == 41917)
m_target->CastSpell(m_target, 41915, true);
}
}
void Aura::HandlePeriodicDamagePCT(bool apply, bool Real)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7498"
#define REVISION_NR "7499"
#endif // __REVISION_NR_H__