Skip to content

Commit

Permalink
Changes skill APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
insthync committed Jun 21, 2021
1 parent 408690e commit 97cd197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/AimAtCursorPlayerCharacterController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 97cd197

Please sign in to comment.