Commit 3e904b11 authored by 聖園ミカ's avatar 聖園ミカ 🐟

1+1=3

parent 64e35e77
......@@ -39,7 +39,7 @@ function c65030011.initial_effect(c)
end
function c65030011.atkcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttacker()
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil and b:IsAttackAbove(0)
and not Duel.IsDamageCalculated()
end
function c65030011.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -49,8 +49,6 @@ function c65030011.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
if tc and not tc:IsImmuneToEffect(e) then
local preatk=tc:GetAttack()
if tc:GetFlagEffect(65030020)>0 and preatk<=0 then return end
tc:RegisterFlagEffect(65030020,RESET_EVENT+RESETS_STANDARD,0,1)
local dam=1000-preatk
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -42,7 +42,7 @@ end
function c65030012.atkcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttacker()
local ph=Duel.GetCurrentPhase()
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil and b:IsAttackAbove(0)
and not Duel.IsDamageCalculated()
end
function c65030012.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -51,8 +51,6 @@ function c65030012.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.SelectYesNo(tp,aux.Stringid(65030012,0)) then return end
if tc and not tc:IsImmuneToEffect(e) then
local preatk=tc:GetAttack()
if tc:GetFlagEffect(65030020)>0 and preatk<=0 then return end
tc:RegisterFlagEffect(65030020,RESET_EVENT+RESETS_STANDARD,0,1)
local dam=1600-preatk
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -39,7 +39,7 @@ function c65030013.initial_effect(c)
end
function c65030013.atkcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttacker()
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil and b:IsAttackAbove(0)
and not Duel.IsDamageCalculated()
end
function c65030013.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -48,8 +48,6 @@ function c65030013.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.SelectYesNo(tp,aux.Stringid(65030013,0)) then return end
if tc and not tc:IsImmuneToEffect(e) then
local preatk=tc:GetAttack()
if tc:GetFlagEffect(65030020)>0 and preatk<=0 then return end
tc:RegisterFlagEffect(65030020,RESET_EVENT+RESETS_STANDARD,0,1)
local dam=1400-preatk
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -38,7 +38,7 @@ function c65030014.initial_effect(c)
end
function c65030014.atkcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttacker()
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil and b:IsAttackAbove(0)
and not Duel.IsDamageCalculated()
end
function c65030014.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -47,8 +47,6 @@ function c65030014.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.SelectYesNo(tp,aux.Stringid(65030014,0)) then return end
if tc and not tc:IsImmuneToEffect(e) then
local preatk=tc:GetAttack()
if tc:GetFlagEffect(65030020)>0 and preatk<=0 then return end
tc:RegisterFlagEffect(65030020,RESET_EVENT+RESETS_STANDARD,0,1)
local dam=1200-preatk
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -40,7 +40,7 @@ function c65030015.initial_effect(c)
end
function c65030015.atkcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttacker()
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil and b:IsAttackAbove(0)
and not Duel.IsDamageCalculated()
end
function c65030015.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -49,8 +49,6 @@ function c65030015.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.SelectYesNo(tp,aux.Stringid(65030015,0)) then return end
if tc and not tc:IsImmuneToEffect(e) then
local preatk=tc:GetAttack()
if tc:GetFlagEffect(65030020)>0 and preatk<=0 then return end
tc:RegisterFlagEffect(65030020,RESET_EVENT+RESETS_STANDARD,0,1)
local dam=1800-preatk
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -33,7 +33,7 @@ function c65030016.con(e)
end
function c65030016.atkcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttacker()
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil and b:IsAttackAbove(0)
and not Duel.IsDamageCalculated()
end
function c65030016.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -42,8 +42,6 @@ function c65030016.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.SelectYesNo(tp,aux.Stringid(65030016,0)) then return end
if tc and not tc:IsImmuneToEffect(e) then
local preatk=tc:GetAttack()
if tc:GetFlagEffect(65030020)>0 and preatk<=0 then return end
tc:RegisterFlagEffect(65030020,RESET_EVENT+RESETS_STANDARD,0,1)
local dam=2200-preatk
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -61,7 +61,7 @@ function c65030018.edop(e,tp,eg,ep,ev,re,r,rp)
end
function c65030018.atkcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttacker()
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil
return b:IsLocation(LOCATION_MZONE) and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil and b:IsAttackAbove(0)
and not Duel.IsDamageCalculated()
end
function c65030018.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -70,8 +70,6 @@ function c65030018.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.SelectYesNo(tp,aux.Stringid(65030018,0)) then return end
if tc and not tc:IsImmuneToEffect(e) then
local preatk=tc:GetAttack()
if tc:GetFlagEffect(65030020)>0 and preatk<=0 then return end
tc:RegisterFlagEffect(65030020,RESET_EVENT+RESETS_STANDARD,0,1)
local dam=2600-preatk
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -38,7 +38,7 @@ function c65030019.initial_effect(c)
end
function c65030019.atkcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttacker()
return b and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil
return b and b:IsControler(1-tp) and Duel.GetAttackTarget()==nil and b:IsAttackAbove(0)
and not Duel.IsDamageCalculated()
end
function c65030019.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -47,8 +47,6 @@ function c65030019.atkop(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.SelectYesNo(tp,aux.Stringid(65030019,0)) then return end
if tc and not tc:IsImmuneToEffect(e) then
local preatk=tc:GetAttack()
if tc:GetFlagEffect(65030020)>0 and preatk<=0 then return end
tc:RegisterFlagEffect(65030020,RESET_EVENT+RESETS_STANDARD,0,1)
local dam=2000-preatk
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -74,7 +72,7 @@ function c65030019.ntcon(e,c,minc)
return minc==0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.GetMatchingGroupCount(c65030019.actconfil,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)==0 and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)==0
end
function c65030019.nttg(e,c)
return c:IsLevelAbove(5)
return c:IsLevel(5)
end
......
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