From 97cd1975031e36d39309c5e26a34816a23d5afcc Mon Sep 17 00:00:00 2001 From: Insthync Date: Mon, 21 Jun 2021 15:56:29 +0700 Subject: [PATCH] Changes skill APIs --- Scripts/AimAtCursorPlayerCharacterController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;