mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10168] Add dummy aura effect of spell 32045, 32051 and 32052.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
da2c210161
commit
617dd4391a
2 changed files with 32 additions and 1 deletions
|
|
@ -1803,6 +1803,16 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
if (Unit* caster = GetCaster())
|
||||
caster->CastSpell(caster, 13138, true, NULL, this);
|
||||
return;
|
||||
case 32045: // Soul Charge
|
||||
case 32051:
|
||||
case 32052:
|
||||
{
|
||||
// max duration is 2 minutes, but expected to be random duration
|
||||
// real time randomness is unclear, using max 30 seconds here
|
||||
// see further down for expire of this aura
|
||||
SetAuraDuration(rand()%30*IN_MILLISECONDS);
|
||||
return;
|
||||
}
|
||||
case 39850: // Rocket Blast
|
||||
if (roll_chance_i(20)) // backfire stun
|
||||
target->CastSpell(target, 51581, true, NULL, this);
|
||||
|
|
@ -1994,6 +2004,27 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
target->CastSpell(target, 28240, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
case 32045: // Soul Charge
|
||||
{
|
||||
if (m_removeMode == AURA_REMOVE_BY_EXPIRE)
|
||||
target->CastSpell(target, 32054, true, NULL, this);
|
||||
|
||||
return;
|
||||
}
|
||||
case 32051: // Soul Charge
|
||||
{
|
||||
if (m_removeMode == AURA_REMOVE_BY_EXPIRE)
|
||||
target->CastSpell(target, 32057, true, NULL, this);
|
||||
|
||||
return;
|
||||
}
|
||||
case 32052: // Soul Charge
|
||||
{
|
||||
if (m_removeMode == AURA_REMOVE_BY_EXPIRE)
|
||||
target->CastSpell(target, 32053, true, NULL, this);
|
||||
|
||||
return;
|
||||
}
|
||||
case 32286: // Focus Target Visual
|
||||
{
|
||||
if (m_removeMode == AURA_REMOVE_BY_EXPIRE)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10167"
|
||||
#define REVISION_NR "10168"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue