fix melee attacks
This commit is contained in:
+4
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user