채팅0

    형들질문..

    조회수 1068

    여기서.. 무적만 뺼려고 하면어트케 해야됭...ㅠㅠ

    댓글4

    회원프로필

    return function (self, damage, hitByLeft, fromMob, attackIndex, reflect)
        local user = self.Entity
        local regularAttack = not fromMob or attackIndex <= 500
        self.HitDamage = damage
        local templateId = 500
        if (isvalid(fromMob)) then
            templateId = fromMob.MobComponent:GetLinkOriginTemplateId()
        end
        self:ShowHitDamage(damage, 500, templateId, attackIndex, not hitByLeft, "")
        if (damage > 500) then
            local randomAction = math.random(1, 2) -- 무작위로 1 또는 2 선택
            if randomAction == 1 then
                user.CharacterActionComponent:ChangeAction(_CharacterAction.STAND1)
            else
                user.CharacterActionComponent:ChangeAction(_CharacterAction.STAND2)
            end

            self:OnUserHitServer(damage, 0, fromMob, p, attackIndex, not hitByLeft, reflect, self.)
        end
    end
    요고야..

    2024.02.17 08:54
    회원프로필

    무적이랑 피굳이랑 달라요?

    2024.02.17 08:59
    회원프로필

    1ㄷ1

    2024.02.17 13:42
    회원프로필

    이거 hit time 없애도 되는거 맞아..?

    2024.02.20 09:37

      안내 배너 이미지