Commit 9f31640c authored by Tachibana's avatar Tachibana

eme

parent 65d2a36c
......@@ -56,13 +56,15 @@ end
function cm.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:GetFlagEffect(m+1)==0 end
if e:GetLabel()~=0 then
e:SetLabel(0)
end
local bc=c:GetBattleTarget()
local atk=bc:GetAttack()
local lp=Duel.GetLP(tp)
if lp>=atk then
local num=lp-atk
Duel.PayLPCost(tp,lp-atk)
Debug.Message(num)
e:SetLabel(num)
end
c:RegisterFlagEffect(m+1,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL,0,1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment