diff --git a/Scripts/AimAtCursorPlayerCharacterController.cs b/Scripts/AimAtCursorPlayerCharacterController.cs index 38eb8aa..0f1e257 100644 --- a/Scripts/AimAtCursorPlayerCharacterController.cs +++ b/Scripts/AimAtCursorPlayerCharacterController.cs @@ -442,7 +442,7 @@ protected void UseSkill(string id, AimPosition aimPosition) !PlayerCharacterEntity.GetCaches().Skills.TryGetValue(skill, out _)) return; - bool isAttackSkill = skill.IsAttack(); + bool isAttackSkill = skill.IsAttack; if (PlayerCharacterEntity.UseSkill(skill.DataId, isLeftHandAttacking, SelectedEntityObjectId, aimPosition) && isAttackSkill) { isLeftHandAttacking = !isLeftHandAttacking; @@ -499,7 +499,7 @@ protected void UseItem(string id, AimPosition aimPosition) } else if (item.IsSkill()) { - bool isAttackSkill = (item as ISkillItem).UsingSkill.IsAttack(); + bool isAttackSkill = (item as ISkillItem).UsingSkill.IsAttack; if (PlayerCharacterEntity.UseSkillItem((short)itemIndex, isLeftHandAttacking, SelectedEntityObjectId, aimPosition) && isAttackSkill) { isLeftHandAttacking = !isLeftHandAttacking;