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
요고야..
댓글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
요고야..
무적이랑 피굳이랑 달라요?
1ㄷ1
이거 hit time 없애도 되는거 맞아..?