聲明 func IsAttackAble(attacker entity<Entity>, target entity<Entity>) bool go 參數 輸入 名稱 類型 描述 造成傷害的實體 Entity 攻擊者 目標 Entity 目標實體 返回 類型 描述 Bool 是否可攻擊