From e9085a8270ef1a5996a900ae0428a37a0dd1d464 Mon Sep 17 00:00:00 2001 From: randy Date: Tue, 26 Aug 2025 21:15:55 -0600 Subject: [PATCH] Fixed ::dps command taking the melee attack speed of the staff instead of the autocast speed when using magic. Also shortened the command description so it fits on the ::commands list. --- .../src/main/core/game/system/command/sets/MiscCommandSet.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/src/main/core/game/system/command/sets/MiscCommandSet.kt b/Server/src/main/core/game/system/command/sets/MiscCommandSet.kt index 5e3a5a39b..28f63e1cc 100644 --- a/Server/src/main/core/game/system/command/sets/MiscCommandSet.kt +++ b/Server/src/main/core/game/system/command/sets/MiscCommandSet.kt @@ -651,7 +651,7 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){ } //Snowscape custom commands - define("dps", Privilege.STANDARD, "::dps NPC ID", "Calculates and prints your current damage, accuracy, and DPS against the given NPC ID."){ player, args -> + define("dps", Privilege.STANDARD, "::dps NPC ID", "Calculates current DPS against the given NPC target."){ player, args -> // If NPC ID is specified, save as attribute. If unspecified, use last saved ID (defaults to Chicken) if (args.size > 1) { setAttribute(player, "snowscape:dpscalc", args[1].toInt()) @@ -671,6 +671,7 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){ attackSpeed-- } } else if (handler.type == CombatStyle.MAGIC) { + attackSpeed = 5 val spell = player.getProperties().getAutocastSpell() maxHit = if (spell != null) spell.getMaximumImpact(player, npc, null) else 0 }