fix melee attacks

This commit is contained in:
2025-01-17 23:40:33 +09:00
parent 9345c7af04
commit 8e95bc141c
4 changed files with 25 additions and 14 deletions
+4 -3
View File
@@ -96,15 +96,16 @@ export default class Ability {
static meleeAttack = new Ability({
id: 'melee_attack',
name: 'Melee Attack',
castTime: 0.1,
cooldown: 1.75,
castTime: (1.4 * 0.22),
cooldown: 1.4,
moveCancelable: true,
damage: 10,
damage: 60,
radius: 5,
range: 100,
effect: function meleeAttackEffect(caster, cursor) {
const ability = this
const target = caster.closestTargetTo(cursor, ability.range)
if (target == null) { return }
target.damage(ability.damage)