mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[12002] Implement spell 59789
Thanks to stfx for porting Signed-off-by: stfx <stfx@hotmail.de> Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
77c5ae1684
commit
9a41fe05cd
2 changed files with 32 additions and 1 deletions
|
|
@ -7491,6 +7491,37 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
|
||||
return;
|
||||
} // random spell learn instead placeholder
|
||||
case 59789: // Oracle Ablutions
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
switch (unitTarget->getPowerType())
|
||||
{
|
||||
case POWER_RUNIC_POWER:
|
||||
{
|
||||
unitTarget->CastSpell(unitTarget, 59812, true);
|
||||
break;
|
||||
}
|
||||
case POWER_MANA:
|
||||
{
|
||||
int32 manapool = unitTarget->GetMaxPower(POWER_MANA) * 0.05;
|
||||
unitTarget->CastCustomSpell(unitTarget, 59813, &manapool, NULL, NULL, true);
|
||||
break;
|
||||
}
|
||||
case POWER_RAGE:
|
||||
{
|
||||
unitTarget->CastSpell(unitTarget, 59814, true);
|
||||
break;
|
||||
}
|
||||
case POWER_ENERGY:
|
||||
{
|
||||
unitTarget->CastSpell(unitTarget, 59815, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 60893: // Northrend Alchemy Research
|
||||
case 61177: // Northrend Inscription Research
|
||||
case 61288: // Minor Inscription Research
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12001"
|
||||
#define REVISION_NR "12002"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue