}
final int index = attackers.indexOf(siegeClan);
int warIndex = Integer.MIN_VALUE;
RainbowGourdInstance gourdInstance = null;
RainbowGourdInstance gourdInstance2 = null;
switch (skill.getId())
{
case 2240: // nectar
if (Rnd.chance(90))
{
gourdInstance = getGourd(index);
if (gourdInstance == null)
{
return;
}
gourdInstance.doDecrease(player);
}
else
{
actor.addMob(NpcUtils.spawnSingle(35592, actor.getX() + 10, actor.getY() + 10, actor.getZ(), 0));
}
break;
case 2241: // mineral water
warIndex = rndEx(attackers.size(), index);
if (warIndex == Integer.MIN_VALUE)
{
return;
}
gourdInstance2 = getGourd(warIndex);
if (gourdInstance2 == null)
{
return;
}
gourdInstance2.doHeal();
break;
case 2242: // water
warIndex = rndEx(attackers.size(), index);
if (warIndex == Integer.MIN_VALUE)
{