[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:
Reamer 2011-12-18 02:08:09 +01:00 committed by Schmoozerd
parent 77c5ae1684
commit 9a41fe05cd
2 changed files with 32 additions and 1 deletions

View file

@ -7491,6 +7491,37 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
return; return;
} // random spell learn instead placeholder } // 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 60893: // Northrend Alchemy Research
case 61177: // Northrend Inscription Research case 61177: // Northrend Inscription Research
case 61288: // Minor Inscription Research case 61288: // Minor Inscription Research

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "12001" #define REVISION_NR "12002"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__