Fixed the dragonfire shield recharge animation to only play when it needs charging

This commit is contained in:
Skal Fate
2023-02-22 08:13:49 +00:00
committed by Ryan
parent 06632a6918
commit 50a9580505
@@ -137,11 +137,12 @@ public class DragonfireSwingHandler extends CombatSwingHandler {
shield.setCharge(shield.getCharge() + 20);
EquipmentContainer.updateBonuses(p);
p.getPacketDispatch().sendMessage("Your dragonfire shield glows more brightly.");
p.faceLocation(entity.getCenterLocation());
victim.visualize(Animation.create(6695), Graphics.create(1163));
} else {
p.getPacketDispatch().sendMessage("Your dragonfire shield is already fully charged.");
}
p.faceLocation(entity.getCenterLocation());
victim.visualize(Animation.create(6695), Graphics.create(1163));
return;
}
}