V0.2.0: Corrected a bug with boomerang and Ring of Sharpshooting

This commit is contained in:
Evan Debenham 2014-09-12 10:55:30 -04:00
parent b3069feee9
commit 5eea9c6cfc

View File

@ -64,7 +64,7 @@ public class MissileWeapon extends Weapon {
} else { } else {
if (!curUser.shoot( enemy, this )) { if (!curUser.shoot( enemy, this )) {
miss( cell ); miss( cell );
} else { } else if (!(this instanceof Boomerang)){
int bonus = 0; int bonus = 0;
for (Buff buff : curUser.buffs(RingOfSharpshooting.Aim.class)) { for (Buff buff : curUser.buffs(RingOfSharpshooting.Aim.class)) {
bonus += ((RingOfSharpshooting.Aim)buff).level; bonus += ((RingOfSharpshooting.Aim)buff).level;