rendered paste body case 14537:// Six Demon Bag
{
if( !unitTarget || !unitTarget->isAlive()) return;
int i; //identyfikator spella
srand( (unsigned)time( NULL ) ); // mieszamy liczby
i = rand() % 5; // lusuj liczbe z przedzialu od 0 do 5
inc(i); // inkramentacja i zeby pasowala do przedzialu 1-6
switch(i)
{
case 1: // frostbolt
{
u_caster->CastSpell(unitTarget, 10179, false)
}
case 2: // fireball
{
u_caster->CastSpell(unitTarget, 10148, false)
}
case 3: // Chain lightning
{
u_caster->CastSpell(unitTarget, 2860, false)
}
case 4: // Polymorph:Sheep
{
u_caster->CastSpell(unitTarget, 851, false)
}
case 5: // Whirlwind
{
u_caster->CastSpell(u_caster, 9633, false)
}
case 6: // Felhunter
{
u_caster->CastSpell(u_caster, 8176, false)
}
}
// FIXME:Does weird things to target infront of you
}break;