[12009] Fix wrong implementation of spell 48590 from [12005]

Thanks to rsa for pointing to the problems
Original author of now similar patch unknown

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Xfurry 2012-06-14 23:45:29 +02:00 committed by Schmoozerd
parent e7114b4b3c
commit 7af8f7fde7
2 changed files with 6 additions and 8 deletions

View file

@ -7125,13 +7125,11 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
if (!unitTarget)
return;
// Summon 4 spirits at near point positions
float x, y, z;
for (uint8 i = 0; i < 4; ++i)
{
unitTarget->GetNearPoint(unitTarget, x, y, z, 0, 3.0f, M_PI_F/2*i+M_PI_F/4);
unitTarget->CastSpell(x, y, z, 48592, true);
}
// Summon 4 spirits summoners
unitTarget->CastSpell(unitTarget, 48586, true);
unitTarget->CastSpell(unitTarget, 48587, true);
unitTarget->CastSpell(unitTarget, 48588, true);
unitTarget->CastSpell(unitTarget, 48589, true);
return;
}
case 48603: // High Executor's Branding Iron

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12008"
#define REVISION_NR "12009"
#endif // __REVISION_NR_H__