Skip to content

Commit

Permalink
Merge pull request #245 from P0nk/fix/energy-charge-crash #patch
Browse files Browse the repository at this point in the history
Fix Energy charge crashing certain other players
  • Loading branch information
P0nk authored Jun 16, 2024
2 parents d916502 + 5a4bdd3 commit 238c01b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/client/Character.java
Original file line number Diff line number Diff line change
Expand Up @@ -6063,7 +6063,8 @@ public void handleEnergyChargeGain() { // to get here energychargelevel has to b
sendPacket(PacketCreator.giveBuff(energybar, 0, stat));
sendPacket(PacketCreator.showOwnBuffEffect(energycharge.getId(), 2));
getMap().broadcastPacket(this, PacketCreator.showBuffEffect(id, energycharge.getId(), 2));
getMap().broadcastPacket(this, PacketCreator.giveForeignBuff(energybar, stat));
getMap().broadcastPacket(this, PacketCreator.giveForeignPirateBuff(id, energycharge.getId(),
ceffect.getDuration(), stat));
}
if (energybar >= 10000 && energybar < 11000) {
energybar = 15000;
Expand Down

0 comments on commit 238c01b

Please sign in to comment.