Commit 1ad00278 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent db80d0fc
...@@ -69,18 +69,15 @@ function s.rctg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,18 +69,15 @@ function s.rctg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,ev) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,ev)
end end
function s.rcop(e,tp,eg,ep,ev,re,r,rp) function s.rcop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Recover(tp,ev,REASON_EFFECT) Duel.Recover(tp,ev,REASON_EFFECT)
local cg=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,0,nil) local e1=Effect.CreateEffect(c)
local tc=cg:GetFirst() e1:SetType(EFFECT_TYPE_FIELD)
while tc do
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
e1:SetOwnerPlayer(tp) Duel.RegisterEffect(e1,tp)
tc:RegisterEffect(e1)
tc=cg:GetNext()
end
end end
function s.gfcon(e) function s.gfcon(e)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -25,6 +25,7 @@ function s.initial_effect(c) ...@@ -25,6 +25,7 @@ function s.initial_effect(c)
e2:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) e2:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(0,LOCATION_MZONE) e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetTarget(s.antarget)
e2:SetCondition(s.effcon) e2:SetCondition(s.effcon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -72,6 +73,9 @@ end ...@@ -72,6 +73,9 @@ end
function s.effcon(e,tp,eg,ep,ev,re,r,rp,chk) function s.effcon(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_ONFIELD,0,1,nil)
end end
function s.antarget(e,c)
return c:IsType(TYPE_MONSTER)
end
function s.atkval(e,c) function s.atkval(e,c)
local cont=c:GetControler() local cont=c:GetControler()
return math.abs((Duel.GetLP(cont)-Duel.GetLP(1-cont))/2) return math.abs((Duel.GetLP(cont)-Duel.GetLP(1-cont))/2)
...@@ -83,7 +87,7 @@ function s.becon(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -83,7 +87,7 @@ function s.becon(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.IsExistingMatchingCard(s.filter3,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(s.filter3,tp,LOCATION_ONFIELD,0,1,nil)
end end
function s.pfilter(c,e,tp) function s.pfilter(c,e,tp)
return c.setcard=="Abnormality" and c:IsType(TYPE_MONSTER) return c.setcard=="Abnormality" and c:IsType(TYPE_MONSTER) and c:IsType(TYPE_FUSION)
end end
function s.damval(e,re,val,r,rp,rc) function s.damval(e,re,val,r,rp,rc)
return math.floor(val/2) return math.floor(val/2)
......
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