Commit 41260c66 authored by zengsxing's avatar zengsxing

Update c101204088.lua

parent 533e5d7c
Pipeline #26375 passed with stages
in 1 minute and 14 seconds
......@@ -49,7 +49,7 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e1:SetValue(s.fuslimit)
e2:SetValue(s.fuslimit)
e2:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL)
tc:RegisterEffect(e2)
local e3=e1:Clone()
......@@ -71,7 +71,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
e:SetLabelObject(bc)
return bc and bc:GetCounter(0x106b)>0 and bc:IsRelateToBattle()
return bc and bc:IsControler(1-tp) and bc:GetCounter(0x106b)>0 and bc:IsRelateToBattle()
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetLabelObject()
......@@ -84,10 +84,11 @@ end
function s.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=e:GetHandler():GetBattleTarget()
if bc:IsRelateToBattle() and Duel.Destroy(bc,REASON_EFFECT) then
if bc:IsRelateToBattle() and bc:IsType(TYPE_MONSTER) and bc:IsControler(1-tp) and Duel.Destroy(bc,REASON_EFFECT)>0 then
Duel.Damage(1-tp,bc:GetTextAttack(),REASON_EFFECT,true)
Duel.Damage(tp,bc:GetTextAttack(),REASON_EFFECT,true)
Duel.RDComplete()
end
local fid=e:GetHandler():GetFieldID()
c:RegisterFlagEffect(id,RESET_EVENT+0x47c0000+RESET_PHASE+PHASE_BATTLE,0,1,fid)
local de=Effect.CreateEffect(c)
......@@ -100,7 +101,6 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
de:SetLabelObject(c)
de:SetOperation(s.desop2)
Duel.RegisterEffect(de,tp)
end
end
function s.desop2(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
......
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