v0.9.2: using darts with a crossbow should now help ID the crossbow

This commit is contained in:
Evan Debenham 2021-02-22 20:38:29 -05:00
parent 4fc1d0597f
commit 45ac5377dc

View File

@ -117,11 +117,10 @@ public class Dart extends MissileWeapon {
@Override
public int proc(Char attacker, Char defender, int damage) {
if (bow != null && bow.enchantment != null && attacker.buff(MagicImmune.class) == null){
level(bow.level());
damage = bow.enchantment.proc(bow, attacker, defender, damage);
level(0);
if (bow != null){
damage = bow.proc(attacker, defender, damage);
}
return super.proc(attacker, defender, damage);
}