mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8208] Add part support for spell 33525.
Also let spell 33652 trigger when aura from 33572 reach full effect. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
454b9a06a8
commit
c59dac48ff
2 changed files with 16 additions and 2 deletions
|
|
@ -1992,6 +1992,10 @@ void Aura::TriggerSpell()
|
|||
caster->CastCustomSpell(target, trigger_spell_id, &m_modifier.m_amount, NULL, NULL, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
// Ground Slam
|
||||
case 33525:
|
||||
target->CastSpell(target, trigger_spell_id, true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3915,12 +3919,22 @@ void Aura::HandleAuraModIncreaseSwimSpeed(bool /*apply*/, bool Real)
|
|||
m_target->UpdateSpeed(MOVE_SWIM, true);
|
||||
}
|
||||
|
||||
void Aura::HandleAuraModDecreaseSpeed(bool /*apply*/, bool Real)
|
||||
void Aura::HandleAuraModDecreaseSpeed(bool apply, bool Real)
|
||||
{
|
||||
// all applied/removed only at real aura add/remove
|
||||
if(!Real)
|
||||
return;
|
||||
|
||||
if (apply)
|
||||
{
|
||||
// Gronn Lord's Grasp, becomes stoned
|
||||
if (GetId() == 33572)
|
||||
{
|
||||
if (GetStackAmount() >= 5 && !m_target->HasAura(33652))
|
||||
m_target->CastSpell(m_target, 33652, true);
|
||||
}
|
||||
}
|
||||
|
||||
m_target->UpdateSpeed(MOVE_RUN, true);
|
||||
m_target->UpdateSpeed(MOVE_SWIM, true);
|
||||
m_target->UpdateSpeed(MOVE_FLIGHT, true);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8207"
|
||||
#define REVISION_NR "8208"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue