v0.9.2: using darts with a crossbow should now help ID the crossbow
This commit is contained in:
parent
4fc1d0597f
commit
45ac5377dc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user