Skip to content

Commit

Permalink
Exスキルアニメーションの再生条件を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Gakuto1112 committed May 11, 2024
1 parent b7e0aa1 commit 6df0dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ex_skill/ex_skill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ExSkill = {
---アニメーションが再生可能かどうかを返す。
---@return boolean animationPlayable Exスキルアニメーションが再生可能かどうか
canPlayAnimation = function (self)
return player:getPose() == "STANDING" and player:getVelocity():length() < 0.01 and self.BodyYaw[1] == self.BodyYaw[2] and player:isOnGround() and not player:isInWater() and not player:isInLava() and not renderer:isFirstPerson() and PlayerUtils:getDamageStatus() == "NONE" and player:getActiveItem().id == "minecraft:air"
return player:getPose() == "STANDING" and player:getVelocity():length() < 0.01 and self.BodyYaw[1] == self.BodyYaw[2] and player:isOnGround() and not player:isInWater() and not player:isInLava() and not renderer:isFirstPerson() and PlayerUtils:getDamageStatus() == "NONE" and player:getSwingArm() == nil and player:getActiveItem().id == "minecraft:air"
end,

---Exスキルのアニメーションの前後のカメラのトランジションを行う関数
Expand Down

0 comments on commit 6df0dae

Please sign in to comment.