[11886] Implement periodic aura effect of 58886

Research and original patch by Lopin
Thanks to tst12 for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
rsa 2012-01-17 16:30:31 +04:00 committed by Schmoozerd
parent 8aadf27964
commit d1a45fed71
2 changed files with 13 additions and 5 deletions

View file

@ -1593,8 +1593,17 @@ void Aura::TriggerSpell()
// case 58040: break;
// // Draw Magic
// case 58185: break;
// // Food
// case 58886: break;
case 58886: // Food
{
if (GetAuraTicks() != 1)
return;
uint32 randomBuff[5] = {57288, 57139, 57111, 57286, 57291};
trigger_spell_id = urand(0, 1) ? 58891 : randomBuff[urand(0, 4)];
break;
}
// // Shadow Sickle
// case 59103: break;
// // Time Bomb
@ -1613,8 +1622,7 @@ void Aura::TriggerSpell()
// case 62571: break;
// // Mulgore Hatchling
// case 62586: break;
// Durotar Scorpion
case 62679:
case 62679: // Durotar Scorpion
trigger_spell_id = auraSpellInfo->CalculateSimpleValue(m_effIndex);
break;
// // Fighting Fish

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11885"
#define REVISION_NR "11886"
#endif // __REVISION_NR_H__