Commit bdad82f7 authored by VanillaSalt's avatar VanillaSalt

fix

parent 48ed1443
...@@ -12,12 +12,10 @@ function c18271561.initial_effect(c) ...@@ -12,12 +12,10 @@ function c18271561.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c18271561.filter(c,tp) function c18271561.filter(c,tp)
local pos=c:GetPreviousPosition() return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
if c:IsReason(REASON_BATTLE) then pos=c:GetBattlePosition() end
return c:IsPreviousLocation(LOCATION_MZONE) and bit.band(pos,POS_FACEUP)~=0
and c:GetPreviousControler()==tp and c:IsReason(REASON_DESTROY) and c:GetPreviousControler()==tp and c:IsReason(REASON_DESTROY)
end end
function c18271561.condition(e,tp,eg,ep,ev,re,r,rp,chk) function c18271561.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c18271561.filter,1,nil,tp) return eg:IsExists(c18271561.filter,1,nil,tp)
end end
function c18271561.target(e,tp,eg,ep,ev,re,r,rp,chk) function c18271561.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -6,6 +6,7 @@ function c29267084.initial_effect(c) ...@@ -6,6 +6,7 @@ function c29267084.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c29267084.condition) e1:SetCondition(c29267084.condition)
e1:SetTarget(c29267084.target) e1:SetTarget(c29267084.target)
e1:SetOperation(c29267084.operation) e1:SetOperation(c29267084.operation)
...@@ -26,7 +27,7 @@ function c29267084.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -26,7 +27,7 @@ function c29267084.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
end end
function c29267084.operation(e,tp,eg,ep,ev,re,r,rp) function c29267084.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -6,6 +6,7 @@ function c51099515.initial_effect(c) ...@@ -6,6 +6,7 @@ function c51099515.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c51099515.condition) e1:SetCondition(c51099515.condition)
e1:SetCost(c51099515.cost) e1:SetCost(c51099515.cost)
e1:SetTarget(c51099515.target) e1:SetTarget(c51099515.target)
......
...@@ -5,6 +5,7 @@ function c67113830.initial_effect(c) ...@@ -5,6 +5,7 @@ function c67113830.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c67113830.condition) e1:SetCondition(c67113830.condition)
e1:SetTarget(c67113830.target) e1:SetTarget(c67113830.target)
e1:SetOperation(c67113830.activate) e1:SetOperation(c67113830.activate)
......
...@@ -5,7 +5,7 @@ function c70861343.initial_effect(c) ...@@ -5,7 +5,7 @@ function c70861343.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x1c0,TIMING_DRAW_PHASE) e1:SetHintTiming(0,0x1c0+TIMING_DRAW_PHASE)
e1:SetTarget(c70861343.target) e1:SetTarget(c70861343.target)
e1:SetOperation(c70861343.operation) e1:SetOperation(c70861343.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -24,7 +24,7 @@ end ...@@ -24,7 +24,7 @@ end
function c70861343.filter(c,lv,e,tp) function c70861343.filter(c,lv,e,tp)
return c:IsLevelBelow(lv) and c:IsRace(RACE_BEAST+RACE_WINDBEAST+RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(lv) and c:IsRace(RACE_BEAST+RACE_WINDBEAST+RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c70861343.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c70861343.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.CheckReleaseGroup(tp,c70861343.cfilter,1,nil,e,tp) end and Duel.CheckReleaseGroup(tp,c70861343.cfilter,1,nil,e,tp) end
local rg=Duel.SelectReleaseGroup(tp,c70861343.cfilter,1,1,nil,e,tp) local rg=Duel.SelectReleaseGroup(tp,c70861343.cfilter,1,1,nil,e,tp)
......
...@@ -6,6 +6,7 @@ function c70899775.initial_effect(c) ...@@ -6,6 +6,7 @@ function c70899775.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c70899775.condition) e1:SetCondition(c70899775.condition)
e1:SetTarget(c70899775.target) e1:SetTarget(c70899775.target)
e1:SetOperation(c70899775.activate) e1:SetOperation(c70899775.activate)
......
--スクランブル・エッグ --スクランブル・エッグ
function c75078585.initial_effect(c) function c75078585.initial_effect(c)
Duel.EnableGlobalFlag(GLOBALFLAG_DELAYED_QUICKEFFECT)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
...@@ -10,10 +10,9 @@ function c84401683.initial_effect(c) ...@@ -10,10 +10,9 @@ function c84401683.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(0,0x1c0) e1:SetHintTiming(TIMING_DAMAGE_STEP,TIMING_DAMAGE_STEP+0x1c0)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c84401683.negcon) e1:SetCondition(c84401683.negcon)
e1:SetCost(c84401683.negcost) e1:SetCost(c84401683.negcost)
e1:SetTarget(c84401683.negtg) e1:SetTarget(c84401683.negtg)
......
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