forked from 2009Scape/Server
Fixed the dragonfire shield recharge animation to only play when it needs charging
This commit is contained in:
parent
06632a6918
commit
50a9580505
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue