mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[7499] Implement post effect for DoT spell 41917
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
5a2c08ed7f
commit
ebd292a226
2 changed files with 136 additions and 126 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7498"
|
||||
#define REVISION_NR "7499"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue