Skip to content

Commit

Permalink
fix: NONE 싱글톤 에러 픽스 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterricecake committed Oct 14, 2024
1 parent 3626596 commit 37d4a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mafia/mafiatogether/domain/Room.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public Player getPlayer(final String name) {
public String executeSkill(final String name, final String targetName) {
final Player player = getPlayer(name);
final Player target = getPlayer(targetName);
if (!target.isAlive()) {
if (!target.isAlive() && !target.equals(Player.NONE)) {
throw new PlayerException(ExceptionCode.NOT_ALIVE_PLAYER);
}
return player.getJob().applySkill(target, jobTarget);
Expand Down

0 comments on commit 37d4a93

Please sign in to comment.