use of com.projectkorra.projectkorra.avatar.AvatarState in project Spirits by xNuminousx.
the class Fuse method defuse.
public void defuse() {
if (player.getGameMode() == GameMode.SPECTATOR) {
player.setSpectatorTarget(null);
player.setGameMode(originGM);
}
if (target instanceof Player) {
BendingPlayer bTarget = BendingPlayer.getBendingPlayer((Player) target);
if (bTarget.isAvatarState()) {
AvatarState avatarState = getAbility((Player) target, AvatarState.class);
avatarState.remove();
}
}
}
Aggregations