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