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) ...@@ -49,7 +49,7 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1) e1:SetValue(1)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e1:SetValue(s.fuslimit) e2:SetValue(s.fuslimit)
e2:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL) e2:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
local e3=e1:Clone() local e3=e1:Clone()
...@@ -71,7 +71,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
e:SetLabelObject(bc) 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 end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetLabelObject() local bc=e:GetLabelObject()
...@@ -84,23 +84,23 @@ end ...@@ -84,23 +84,23 @@ end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=e:GetHandler():GetBattleTarget() 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(1-tp,bc:GetTextAttack(),REASON_EFFECT,true)
Duel.Damage(tp,bc:GetTextAttack(),REASON_EFFECT,true) Duel.Damage(tp,bc:GetTextAttack(),REASON_EFFECT,true)
Duel.RDComplete() Duel.RDComplete()
local fid=e:GetHandler():GetFieldID()
c:RegisterFlagEffect(id,RESET_EVENT+0x47c0000+RESET_PHASE+PHASE_BATTLE,0,1,fid)
local de=Effect.CreateEffect(c)
de:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
de:SetCode(EVENT_PHASE+PHASE_BATTLE)
de:SetReset(RESET_PHASE+PHASE_BATTLE)
de:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
de:SetCountLimit(1)
de:SetLabel(fid)
de:SetLabelObject(c)
de:SetOperation(s.desop2)
Duel.RegisterEffect(de,tp)
end end
local fid=e:GetHandler():GetFieldID()
c:RegisterFlagEffect(id,RESET_EVENT+0x47c0000+RESET_PHASE+PHASE_BATTLE,0,1,fid)
local de=Effect.CreateEffect(c)
de:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
de:SetCode(EVENT_PHASE+PHASE_BATTLE)
de:SetReset(RESET_PHASE+PHASE_BATTLE)
de:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
de:SetCountLimit(1)
de:SetLabel(fid)
de:SetLabelObject(c)
de:SetOperation(s.desop2)
Duel.RegisterEffect(de,tp)
end end
function s.desop2(e,tp,eg,ep,ev,re,r,rp) function s.desop2(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject() 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