code refactoring
This commit is contained in:
parent
9105d31a02
commit
4513e0bafd
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ public class CombatManager extends Manager {
|
||||||
|
|
||||||
if (luck < -1000) {
|
if (luck < -1000) {
|
||||||
// 100% chance of miss
|
// 100% chance of miss
|
||||||
player.sendMessage(player.identity(), comp("<red>You dodged!"));
|
player.sendMessage(comp("<red>You dodged!"));
|
||||||
player.playSound(player, Sound.ENTITY_ARROW_SHOOT, 1.0f, 1.0f);
|
player.playSound(player, Sound.ENTITY_ARROW_SHOOT, 1.0f, 1.0f);
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue