mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[8075] Effect at remove for aura of spell 42783.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
93d3edfc15
commit
4baf32d05f
2 changed files with 17 additions and 4 deletions
|
|
@ -4161,10 +4161,23 @@ void Aura::HandleAuraModStalked(bool apply, bool /*Real*/)
|
|||
void Aura::HandlePeriodicTriggerSpell(bool apply, bool /*Real*/)
|
||||
{
|
||||
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)
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8074"
|
||||
#define REVISION_NR "8075"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue