[6880] fixed spell 26275 for game object 180797

Signed-off-by: arrai <array.of.intellect@gmail.com>
This commit is contained in:
DasBlub 2008-12-06 14:25:00 +01:00 committed by arrai
parent 43f713f660
commit 3f90b66125
2 changed files with 33 additions and 1 deletions

View file

@ -4587,6 +4587,38 @@ void Spell::EffectScriptEffect(uint32 effIndex)
// by spell id
switch(m_spellInfo->Id)
{
// PX-238 Winter Wondervolt TRAP
case 26275:
{
if( unitTarget->HasAura(26272,0)
|| unitTarget->HasAura(26157,0)
|| unitTarget->HasAura(26273,0)
|| unitTarget->HasAura(26274,0))
return;
uint32 iTmpSpellId;
switch(urand(0,3))
{
case 0:
iTmpSpellId = 26272;
break;
case 1:
iTmpSpellId = 26157;
break;
case 2:
iTmpSpellId = 26273;
break;
case 3:
iTmpSpellId = 26274;
break;
}
unitTarget->CastSpell(unitTarget, iTmpSpellId, true);
return;
}
// Bending Shinbone
case 8856:
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6879"
#define REVISION_NR "6880"
#endif // __REVISION_NR_H__