mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[12039] Implement spells 66118 67630 68646 68647
This commit is contained in:
parent
fd6c2e1751
commit
8d558ee200
2 changed files with 23 additions and 1 deletions
|
|
@ -8024,6 +8024,28 @@ void Aura::PeriodicDummyTick()
|
|||
target->CastSpell(target, 62593, true);
|
||||
return;
|
||||
}
|
||||
case 66118: // Leeching Swarm
|
||||
case 67630: // Leeching Swarm
|
||||
case 68646: // Leeching Swarm
|
||||
case 68647: // Leeching Swarm
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
int32 lifeLeeched = int32(target->GetHealth() * m_modifier.m_amount * 0.01f);
|
||||
|
||||
if (lifeLeeched < 250)
|
||||
lifeLeeched = 250;
|
||||
|
||||
// Leeching swarm damage
|
||||
caster->CastCustomSpell(target, 66240, &lifeLeeched, NULL, NULL, true, NULL, this);
|
||||
|
||||
// Leeching swarm heal
|
||||
target->CastCustomSpell(caster, 66125, &lifeLeeched, NULL, NULL, true, NULL, this);
|
||||
|
||||
return;
|
||||
}
|
||||
case 68875: // Wailing Souls
|
||||
case 68876: // Wailing Souls
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12038"
|
||||
#define REVISION_NR "12039"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue