mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 20:03:21 +00:00
fix setting electro dmg stat
This commit is contained in:
parent
21b3ac103a
commit
2238a7c3aa
@ -197,8 +197,8 @@ public final class SetStatsCommand implements CommandHandler {
|
|||||||
float eelec = Integer.parseInt(args.get(1));
|
float eelec = Integer.parseInt(args.get(1));
|
||||||
EntityAvatar entity = sender.getTeamManager().getCurrentAvatarEntity();
|
EntityAvatar entity = sender.getTeamManager().getCurrentAvatarEntity();
|
||||||
float elec = eelec / 10000;
|
float elec = eelec / 10000;
|
||||||
entity.setFightProperty(FightProperty.FIGHT_PROP_CRITICAL_HURT, elec);
|
entity.setFightProperty(FightProperty.FIGHT_PROP_ELEC_ADD_HURT, elec);
|
||||||
entity.getWorld().broadcastPacket(new PacketEntityFightPropUpdateNotify(entity, FightProperty.FIGHT_PROP_CRITICAL_HURT));
|
entity.getWorld().broadcastPacket(new PacketEntityFightPropUpdateNotify(entity, FightProperty.FIGHT_PROP_ELEC_ADD_HURT));
|
||||||
float igelec = elec * 100;
|
float igelec = elec * 100;
|
||||||
CommandHandler.sendMessage(sender, "Electro DMG Bonus set to " + igelec + "%");
|
CommandHandler.sendMessage(sender, "Electro DMG Bonus set to " + igelec + "%");
|
||||||
} catch (NumberFormatException ignored) {
|
} catch (NumberFormatException ignored) {
|
||||||
|
Loading…
Reference in New Issue
Block a user