Hydra: Fix a poison special bug (#217)

This commit is contained in:
Lucwousin
2019-05-10 20:29:46 +02:00
committed by Kyleeld
parent 6cb58aaacd
commit e94a468e6f

View File

@@ -229,8 +229,12 @@ public class HydraPlugin extends Plugin
if (hydra.getPhase().getSpecProjectileId() != 0 && hydra.getPhase().getSpecProjectileId() == id)
{
poisonProjectiles.put(event.getPosition(), projectile);
if (poisonProjectiles.isEmpty())
{
// Only add 9 to next special on the first poison projectile (whoops)
hydra.setNextSpecial(hydra.getNextSpecial() + 9);
}
poisonProjectiles.put(event.getPosition(), projectile);
}
else if (client.getTickCount() != lastAttackTick
&& (id == Hydra.AttackStyle.MAGIC.getProjId() || id == Hydra.AttackStyle.RANGED.getProjId()))