Commit 89a8c44a authored by DailyShana's avatar DailyShana

fix

parent 78b2623e
...@@ -13,20 +13,17 @@ function c36100154.initial_effect(c) ...@@ -13,20 +13,17 @@ function c36100154.initial_effect(c)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetCondition(c36100154.atkcon) e2:SetCondition(c36100154.atkcon)
e2:SetTarget(c36100154.atktg) e2:SetTarget(c36100154.atktg)
e2:SetValue(c36100154.atkval) e2:SetValue(1000)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c36100154.atkcon(e) function c36100154.atkcon(e)
c36100154[0]=false
return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and Duel.GetAttackTarget() return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and Duel.GetAttackTarget()
end end
function c36100154.atktg(e,c) function c36100154.atktg(e,c)
return c==Duel.GetAttacker() and c:IsSetCard(0x4) if c~=Duel.GetAttacker() or not c:IsSetCard(0x4) then return false end
end
function c36100154.atkval(e,c)
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
if c36100154[0] or c:GetAttack()<d:GetAttack() then if c:GetFlagEffect(36100154)>0 or c:GetAttack()<d:GetAttack() then
c36100154[0]=true c:RegisterFlagEffect(36100154,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL,0,1)
return 1000 return true
else return 0 end else return false end
end end
...@@ -13,20 +13,17 @@ function c53527835.initial_effect(c) ...@@ -13,20 +13,17 @@ function c53527835.initial_effect(c)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetCondition(c53527835.atkcon) e2:SetCondition(c53527835.atkcon)
e2:SetTarget(c53527835.atktg) e2:SetTarget(c53527835.atktg)
e2:SetValue(c53527835.atkval) e2:SetValue(1000)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c53527835.atkcon(e) function c53527835.atkcon(e)
c53527835[0]=false
return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and Duel.GetAttackTarget() return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and Duel.GetAttackTarget()
end end
function c53527835.atktg(e,c) function c53527835.atktg(e,c)
return c==Duel.GetAttacker() and c:IsSetCard(0xc008) if c~=Duel.GetAttacker() or not c:IsSetCard(0xc008) then return false end
end
function c53527835.atkval(e,c)
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
if c53527835[0] or c:GetAttack()<d:GetAttack() then if c:GetFlagEffect(53527835)>0 or c:GetAttack()<d:GetAttack() then
c53527835[0]=true c:RegisterFlagEffect(53527835,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL,0,1)
return 1000 return true
else return 0 end else return false end
end end
...@@ -13,20 +13,17 @@ function c63035430.initial_effect(c) ...@@ -13,20 +13,17 @@ function c63035430.initial_effect(c)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetCondition(c63035430.atkcon) e2:SetCondition(c63035430.atkcon)
e2:SetTarget(c63035430.atktg) e2:SetTarget(c63035430.atktg)
e2:SetValue(c63035430.atkval) e2:SetValue(1000)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c63035430.atkcon(e) function c63035430.atkcon(e)
c63035430[0]=false
return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and Duel.GetAttackTarget() return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and Duel.GetAttackTarget()
end end
function c63035430.atktg(e,c) function c63035430.atktg(e,c)
return c==Duel.GetAttacker() and c:IsSetCard(0x3008) if c~=Duel.GetAttacker() or not c:IsSetCard(0x3008) then return false end
end
function c63035430.atkval(e,c)
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
if c63035430[0] or c:GetAttack()<d:GetAttack() then if c:GetFlagEffect(63035430)>0 or c:GetAttack()<d:GetAttack() then
c63035430[0]=true c:RegisterFlagEffect(63035430,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL,0,1)
return 1000 return true
else return 0 end else return false end
end 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