[11395] minor code cleanup for spell 26275

This commit is contained in:
DasBlub 2011-04-24 23:08:58 +02:00
parent dd0b464a87
commit 0f7aaa865a
2 changed files with 4 additions and 7 deletions

View file

@ -6301,18 +6301,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
} }
case 26275: // PX-238 Winter Wondervolt TRAP case 26275: // PX-238 Winter Wondervolt TRAP
{ {
uint32 spells[4] = { 26272, 26157, 26273, 26274 }; uint32 spells[4] = {26272, 26157, 26273, 26274};
// check presence // check presence
for(int j = 0; j < 4; ++j) for(int j = 0; j < 4; ++j)
if (unitTarget->HasAura(spells[j], EFFECT_INDEX_0)) if(unitTarget->HasAura(spells[j], EFFECT_INDEX_0))
return; return;
// select spell
uint32 iTmpSpellId = spells[urand(0,3)];
// cast // cast
unitTarget->CastSpell(unitTarget, iTmpSpellId, true); unitTarget->CastSpell(unitTarget, spells[urand(0,3)], true);
return; return;
} }
case 26465: // Mercurial Shield - need remove one 26464 Mercurial Shield aura case 26465: // Mercurial Shield - need remove one 26464 Mercurial Shield aura

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 "11394" #define REVISION_NR "11395"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__