v2.4.0: fixed thrown weapons sticking to ghouls as they are downed
This commit is contained in:
+1
-1
@@ -288,7 +288,7 @@ abstract public class MissileWeapon extends Weapon {
|
|||||||
decrementDurability();
|
decrementDurability();
|
||||||
if (durability > 0){
|
if (durability > 0){
|
||||||
//attempt to stick the missile weapon to the enemy, just drop it if we can't.
|
//attempt to stick the missile weapon to the enemy, just drop it if we can't.
|
||||||
if (sticky && enemy != null && enemy.isAlive() && enemy.alignment != Char.Alignment.ALLY){
|
if (sticky && enemy != null && enemy.isActive() && enemy.alignment != Char.Alignment.ALLY){
|
||||||
PinCushion p = Buff.affect(enemy, PinCushion.class);
|
PinCushion p = Buff.affect(enemy, PinCushion.class);
|
||||||
if (p.target == enemy){
|
if (p.target == enemy){
|
||||||
p.stick(this);
|
p.stick(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user