Commit 04791b68 authored by Melledy's avatar Melledy
Browse files

Refactor Revive Command + fix syntax error

No idea how I missed the syntax error while reviewing
parent e884970a
...@@ -15,12 +15,12 @@ import java.util.List; ...@@ -15,12 +15,12 @@ import java.util.List;
@Command(label = "revive", aliases = {"rev"}, @Command(label = "revive", aliases = {"rev"},
usage = "revive|rev", description = "Revive character(s) that died)") usage = "revive|rev", description = "Revive character(s) that died)")
public class Revive implements CommandHandler { public class ReviveCommand implements CommandHandler {
//private Object teamId; //private Object teamId;
@Override @Override
public void execute(GenshinPlayer player, List<String> args) { public void execute(GenshinPlayer player, List<String> args) {
for (EntityAvatar entity2 : TeamManager.getActiveTeam()) { for (EntityAvatar entity2 : player.getTeamManager().getActiveTeam()) {
entity2.setFightProperty( entity2.setFightProperty(
FightProperty.FIGHT_PROP_CUR_HP, FightProperty.FIGHT_PROP_CUR_HP,
entity2.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) * .4f entity2.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) * .4f
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment