From 0f7aaa865a2b180f8f13d4c383604e7727cf63a4 Mon Sep 17 00:00:00 2001 From: DasBlub Date: Sun, 24 Apr 2011 23:08:58 +0200 Subject: [PATCH] [11395] minor code cleanup for spell 26275 --- src/game/SpellEffects.cpp | 9 +++------ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 8ccf78b1b..55464b0bd 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6301,18 +6301,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) } case 26275: // PX-238 Winter Wondervolt TRAP { - uint32 spells[4] = { 26272, 26157, 26273, 26274 }; + uint32 spells[4] = {26272, 26157, 26273, 26274}; // check presence for(int j = 0; j < 4; ++j) - if (unitTarget->HasAura(spells[j], EFFECT_INDEX_0)) + if(unitTarget->HasAura(spells[j], EFFECT_INDEX_0)) return; - // select spell - uint32 iTmpSpellId = spells[urand(0,3)]; - // cast - unitTarget->CastSpell(unitTarget, iTmpSpellId, true); + unitTarget->CastSpell(unitTarget, spells[urand(0,3)], true); return; } case 26465: // Mercurial Shield - need remove one 26464 Mercurial Shield aura diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b625210de..9937f33ee 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11394" + #define REVISION_NR "11395" #endif // __REVISION_NR_H__