Commit 352e5244 authored by DailyShana's avatar DailyShana

clean

Fluorohydride/ygopro-core@75c8cf2
parent 29ff8cfd
...@@ -103,7 +103,7 @@ function c10000020.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,7 +103,7 @@ function c10000020.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c10000020.atkfilter,1,nil,nil,1-tp) return eg:IsExists(c10000020.atkfilter,1,nil,nil,1-tp)
end end
function c10000020.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c10000020.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
end end
function c10000020.atkop(e,tp,eg,ep,ev,re,r,rp) function c10000020.atkop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -65,7 +65,7 @@ function c1003840.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,7 @@ function c1003840.thcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c1003840.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c1003840.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsAbleToDeck() end if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsAbleToDeck() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,Card.IsAbleToDeck,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsAbleToDeck,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
......
...@@ -21,7 +21,7 @@ function c10132124.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,7 +21,7 @@ function c10132124.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c10132124.spfilter,1,nil,tp) return eg:IsExists(c10132124.spfilter,1,nil,tp)
end end
function c10132124.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c10132124.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -21,7 +21,7 @@ function c12469386.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,7 +21,7 @@ function c12469386.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c12469386.filter,1,e:GetHandler(),tp) return eg:IsExists(c12469386.filter,1,e:GetHandler(),tp)
end end
function c12469386.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c12469386.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -28,7 +28,7 @@ function c14154221.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c14154221.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c14154221.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c14154221.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and not e:GetHandler():IsStatus(STATUS_CHAINING) if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING)
and Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end and Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
......
...@@ -17,7 +17,7 @@ function c14430063.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c14430063.damcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPosition(POS_FACEUP_ATTACK) and Duel.GetTurnPlayer()~=tp return e:GetHandler():IsPosition(POS_FACEUP_ATTACK) and Duel.GetTurnPlayer()~=tp
end end
function c14430063.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c14430063.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(500) Duel.SetTargetParam(500)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500)
......
...@@ -32,7 +32,7 @@ function c15854426.filter(c,e,tp) ...@@ -32,7 +32,7 @@ function c15854426.filter(c,e,tp)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c15854426.target(e,tp,eg,ep,ev,re,r,rp,chk) function c15854426.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and not e:GetHandler():IsStatus(STATUS_CHAINING) and not e:GetHandler():IsStatus(STATUS_CHAINING)
and Duel.IsExistingMatchingCard(c15854426.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c15854426.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
......
...@@ -25,7 +25,7 @@ function c1801154.filter2(c,code) ...@@ -25,7 +25,7 @@ function c1801154.filter2(c,code)
end end
function c1801154.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c1801154.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c1801154.filter1(chkc,e,tp,eg) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c1801154.filter1(chkc,e,tp,eg) end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c1801154.filter1,tp,LOCATION_GRAVE,0,1,nil,e,tp,eg) end and Duel.IsExistingTarget(c1801154.filter1,tp,LOCATION_GRAVE,0,1,nil,e,tp,eg) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c1801154.filter1,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,eg) local g=Duel.SelectTarget(tp,c1801154.filter1,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,eg)
......
...@@ -59,7 +59,7 @@ function c20368763.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c20368763.spcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler()~=e:GetHandler() and re:IsHasType(0x7f0) and eg:IsExists(c20368763.cfilter,1,nil,tp) return re and re:GetHandler()~=e:GetHandler() and re:IsHasType(0x7f0) and eg:IsExists(c20368763.cfilter,1,nil,tp)
end end
function c20368763.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c20368763.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
......
...@@ -46,8 +46,7 @@ function c21702241.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,8 +46,7 @@ function c21702241.damcon(e,tp,eg,ep,ev,re,r,rp)
return tg and eg:IsContains(tg) return tg and eg:IsContains(tg)
end end
function c21702241.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c21702241.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING) end
and not e:GetHandler():IsStatus(STATUS_CHAINING) end
local ec=e:GetHandler():GetEquipTarget() local ec=e:GetHandler():GetEquipTarget()
if not ec then return false end if not ec then return false end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,ec:GetControler(),ec:GetBaseAttack()) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,ec:GetControler(),ec:GetBaseAttack())
......
...@@ -37,7 +37,7 @@ function c22174866.thfilter(c) ...@@ -37,7 +37,7 @@ function c22174866.thfilter(c)
end end
function c22174866.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22174866.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c22174866.thfilter(chkc) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c22174866.thfilter(chkc) end
if chk==0 then return ep==tp and e:GetHandler():IsRelateToEffect(e) end if chk==0 then return ep==tp end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,c22174866.thfilter,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,c22174866.thfilter,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
......
...@@ -42,8 +42,7 @@ function c23979249.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,8 +42,7 @@ function c23979249.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c23979249.cfilter,1,nil,tp) return eg:IsExists(c23979249.cfilter,1,nil,tp)
end end
function c23979249.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c23979249.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -20,7 +20,7 @@ function c25206027.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c25206027.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c25206027.spfilter,1,nil,tp) return eg:IsExists(c25206027.spfilter,1,nil,tp)
end end
function c25206027.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c25206027.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -45,7 +45,7 @@ function c25407643.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c25407643.condition(e,tp,eg,ep,ev,re,r,rp)
and eg:IsExists(c25407643.cfilter2,1,nil,1-tp) and eg:IsExists(c25407643.cfilter2,1,nil,1-tp)
end end
function c25407643.target(e,tp,eg,ep,ev,re,r,rp,chk) function c25407643.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
end end
function c25407643.operation(e,tp,eg,ep,ev,re,r,rp) function c25407643.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -54,7 +54,7 @@ function c26920296.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c26920296.drcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c26920296.drcfilter,1,nil,tp) return eg:IsExists(c26920296.drcfilter,1,nil,tp)
end end
function c26920296.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c26920296.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and Duel.IsExistingMatchingCard(c26920296.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,TYPE_FUSION) end and Duel.IsExistingMatchingCard(c26920296.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,TYPE_FUSION) end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
......
...@@ -21,7 +21,7 @@ function c27870033.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,7 +21,7 @@ function c27870033.damcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c27870033.cfilter,1,nil) return eg:IsExists(c27870033.cfilter,1,nil)
end end
function c27870033.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c27870033.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(500) Duel.SetTargetParam(500)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500)
......
...@@ -42,8 +42,7 @@ function c28201945.filter(c,e,tp,ft) ...@@ -42,8 +42,7 @@ function c28201945.filter(c,e,tp,ft)
end end
function c28201945.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c28201945.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.IsExistingMatchingCard(c28201945.filter,tp,LOCATION_DECK,0,1,nil,e,tp,ft) end
and Duel.IsExistingMatchingCard(c28201945.filter,tp,LOCATION_DECK,0,1,nil,e,tp,ft) end
end end
function c28201945.spop(e,tp,eg,ep,ev,re,r,rp) function c28201945.spop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
......
...@@ -63,8 +63,7 @@ function c30398342.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,8 +63,7 @@ function c30398342.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c30398342.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c30398342.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c30398342.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c30398342.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -25,7 +25,7 @@ function c30653113.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,7 +25,7 @@ function c30653113.condition(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and eg:IsExists(c30653113.cfilter,1,nil,tp) return rp~=tp and eg:IsExists(c30653113.cfilter,1,nil,tp)
end end
function c30653113.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30653113.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1000) Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000)
......
...@@ -17,7 +17,7 @@ function c30834988.initial_effect(c) ...@@ -17,7 +17,7 @@ function c30834988.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c30834988.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30834988.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0)
end end
......
...@@ -46,7 +46,7 @@ function c32835363.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c32835363.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+32835363,e,0,tp,e:GetLabel(),0) Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+32835363,e,0,tp,e:GetLabel(),0)
end end
function c32835363.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c32835363.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetParam(800) Duel.SetTargetParam(800)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,ep,800) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,ep,800)
end end
......
...@@ -23,7 +23,7 @@ function c34646691.initial_effect(c) ...@@ -23,7 +23,7 @@ function c34646691.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c34646691.target(e,tp,eg,ep,ev,re,r,rp,chk) function c34646691.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0)
end end
......
...@@ -28,7 +28,7 @@ function c35307484.spfilter(c,e,tp) ...@@ -28,7 +28,7 @@ function c35307484.spfilter(c,e,tp)
end end
function c35307484.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c35307484.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c35307484.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c35307484.spfilter(chkc,e,tp) end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c35307484.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c35307484.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c35307484.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c35307484.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
......
...@@ -53,8 +53,7 @@ function c36415522.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,8 +53,7 @@ function c36415522.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterFlagEffect(36415522,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(36415522,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
end end
function c36415522.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c36415522.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c36415522.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c36415522.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -44,7 +44,7 @@ function c4179255.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c4179255.drcon(e,tp,eg,ep,ev,re,r,rp)
and e:GetHandler():GetFlagEffect(1)>0 and e:GetHandler():GetFlagEffect(1)>0
end end
function c4179255.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c4179255.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
...@@ -28,7 +28,7 @@ function c4215636.spfilter(c,e,tp) ...@@ -28,7 +28,7 @@ function c4215636.spfilter(c,e,tp)
return c:IsLevelBelow(3) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(3) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c4215636.target(e,tp,eg,ep,ev,re,r,rp,chk) function c4215636.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and not e:GetHandler():IsStatus(STATUS_CHAINING) if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c4215636.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c4215636.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND)
end end
......
...@@ -40,8 +40,7 @@ function c43748308.filter(c) ...@@ -40,8 +40,7 @@ function c43748308.filter(c)
return c:IsSetCard(0x7c) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x7c) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function c43748308.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c43748308.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and not e:GetHandler():IsStatus(STATUS_CHAINING) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(c43748308.filter,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(c43748308.filter,tp,LOCATION_DECK,0,1,nil) end
end end
function c43748308.setop(e,tp,eg,ep,ev,re,r,rp) function c43748308.setop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -63,8 +63,7 @@ function c47598941.settg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,8 +63,7 @@ function c47598941.settg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c47598941.settg2(e,tp,eg,ep,ev,re,r,rp,chk) function c47598941.settg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1))
and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1))
and Duel.IsExistingMatchingCard(c47598941.filter,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(c47598941.filter,tp,LOCATION_DECK,0,1,nil) end
end end
function c47598941.setop(e,tp,eg,ep,ev,re,r,rp) function c47598941.setop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -63,7 +63,7 @@ function c5050644.recon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function c5050644.recon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c5050644.cfilter2,1,nil,tp) return eg:IsExists(c5050644.cfilter2,1,nil,tp)
end end
function c5050644.retg2(e,tp,eg,ep,ev,re,r,rp,chk) function c5050644.retg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1000) Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000)
......
...@@ -46,8 +46,7 @@ function c54059040.target1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,8 +46,7 @@ function c54059040.target1(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c54059040.target2(e,tp,eg,ep,ev,re,r,rp,chk) function c54059040.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.IsExistingMatchingCard(c54059040.cfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(c54059040.cfilter,tp,LOCATION_MZONE,0,1,nil)
and eg:IsExists(c54059040.pfilter,1,nil) end and eg:IsExists(c54059040.pfilter,1,nil) end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0)
......
...@@ -32,8 +32,7 @@ function c54149433.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,8 +32,7 @@ function c54149433.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c54149433.cfilter,1,nil,tp) return eg:IsExists(c54149433.cfilter,1,nil,tp)
end end
function c54149433.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c54149433.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -24,7 +24,7 @@ function c54407825.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,7 +24,7 @@ function c54407825.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c54407825.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c54407825.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsAbleToDeck() end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsAbleToDeck() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,Card.IsAbleToDeck,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsAbleToDeck,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
......
...@@ -49,7 +49,7 @@ function c55737443.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c55737443.damcon(e,tp,eg,ep,ev,re,r,rp)
return tc~=e:GetHandler() and tc:IsAttribute(ATTRIBUTE_EARTH) return tc~=e:GetHandler() and tc:IsAttribute(ATTRIBUTE_EARTH)
end end
function c55737443.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c55737443.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(1000) Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1000) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1000)
......
...@@ -41,8 +41,7 @@ function c58481572.hdcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,8 +41,7 @@ function c58481572.hdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DRAW and eg:IsExists(c58481572.cfilter,1,nil,1-tp) return Duel.GetCurrentPhase()~=PHASE_DRAW and eg:IsExists(c58481572.cfilter,1,nil,1-tp)
end end
function c58481572.hdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c58481572.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND,1,nil) end
and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_HAND)
end end
function c58481572.hdop(e,tp,eg,ep,ev,re,r,rp) function c58481572.hdop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -32,9 +32,8 @@ function c5851097.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,9 +32,8 @@ function c5851097.descon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c5851097.filter,1,nil,tp) return eg:IsExists(c5851097.filter,1,nil,tp)
end end
function c5851097.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c5851097.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() if chk==0 then return true end
if chk==0 then return c:IsRelateToEffect(e) end Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,c,1,0,0)
end end
function c5851097.desop(e,tp,eg,ep,ev,re,r,rp) function c5851097.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -53,7 +53,7 @@ function c58569561.filter(c) ...@@ -53,7 +53,7 @@ function c58569561.filter(c)
end end
function c58569561.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c58569561.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c58569561.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c58569561.filter(chkc) end
if chk==0 then return ep==tp and e:GetHandler():IsRelateToEffect(e) end if chk==0 then return ep==tp end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
local g=Duel.SelectTarget(tp,c58569561.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c58569561.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0)
......
...@@ -23,7 +23,7 @@ function c59297550.filter(c,e,tp) ...@@ -23,7 +23,7 @@ function c59297550.filter(c,e,tp)
end end
function c59297550.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c59297550.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsRelateToEffect(e) and not c:IsStatus(STATUS_CHAINING) if chk==0 then return not c:IsStatus(STATUS_CHAINING)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c59297550.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c59297550.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
......
...@@ -40,7 +40,7 @@ function c59593925.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c59593925.descon(e,tp,eg,ep,ev,re,r,rp)
end end
function c59593925.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c59593925.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() end if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
......
...@@ -8,7 +8,6 @@ function c60102563.initial_effect(c) ...@@ -8,7 +8,6 @@ function c60102563.initial_effect(c)
e1:SetCode(EVENT_DESTROYED) e1:SetCode(EVENT_DESTROYED)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c60102563.atkcon) e1:SetCondition(c60102563.atkcon)
e1:SetTarget(c60102563.atktg)
e1:SetOperation(c60102563.atkop) e1:SetOperation(c60102563.atkop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
...@@ -18,9 +17,6 @@ end ...@@ -18,9 +17,6 @@ end
function c60102563.atkcon(e,tp,eg,ep,ev,re,r,rp) function c60102563.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c60102563.cfilter,1,nil) return eg:IsExists(c60102563.cfilter,1,nil)
end end
function c60102563.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end
end
function c60102563.atkop(e,tp,eg,ep,ev,re,r,rp) function c60102563.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
......
...@@ -30,7 +30,7 @@ function c60470713.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,7 +30,7 @@ function c60470713.condition(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 and eg:IsExists(c60470713.cfilter,1,nil,tp) return bit.band(r,REASON_EFFECT)~=0 and eg:IsExists(c60470713.cfilter,1,nil,tp)
end end
function c60470713.target(e,tp,eg,ep,ev,re,r,rp,chk) function c60470713.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_DECK)
end end
......
...@@ -40,8 +40,7 @@ function c61466310.filter2(c,atk,code) ...@@ -40,8 +40,7 @@ function c61466310.filter2(c,atk,code)
return c:GetAttack()==atk and c:GetDefense()==1000 and c:GetCode()~=code and c:IsAbleToHand() return c:GetAttack()==atk and c:GetDefense()==1000 and c:GetCode()~=code and c:IsAbleToHand()
end end
function c61466310.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61466310.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.IsExistingMatchingCard(c61466310.filter,tp,LOCATION_DECK,0,1,nil,eg:GetFirst():GetCode()) end
and Duel.IsExistingMatchingCard(c61466310.filter,tp,LOCATION_DECK,0,1,nil,eg:GetFirst():GetCode()) end
local t1=Duel.IsExistingMatchingCard(c61466310.filter2,tp,LOCATION_DECK,0,1,nil,2400,eg:GetFirst():GetCode()) local t1=Duel.IsExistingMatchingCard(c61466310.filter2,tp,LOCATION_DECK,0,1,nil,2400,eg:GetFirst():GetCode())
local t2=Duel.IsExistingMatchingCard(c61466310.filter2,tp,LOCATION_DECK,0,1,nil,2800,eg:GetFirst():GetCode()) local t2=Duel.IsExistingMatchingCard(c61466310.filter2,tp,LOCATION_DECK,0,1,nil,2800,eg:GetFirst():GetCode())
if t1 and t2 then e:SetLabel(Duel.SelectOption(tp,aux.Stringid(61466310,1),aux.Stringid(61466310,2))) if t1 and t2 then e:SetLabel(Duel.SelectOption(tp,aux.Stringid(61466310,1),aux.Stringid(61466310,2)))
......
...@@ -37,7 +37,7 @@ function c61650133.mtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c61650133.mtop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c61650133.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61650133.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
end end
function c61650133.rmop(e,tp,eg,ep,ev,re,r,rp) function c61650133.rmop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
......
...@@ -43,7 +43,7 @@ function c62188962.tgfilter(c) ...@@ -43,7 +43,7 @@ function c62188962.tgfilter(c)
end end
function c62188962.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c62188962.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and not e:GetHandler():IsStatus(STATUS_CHAINING) end if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
......
...@@ -24,7 +24,7 @@ function c65830223.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,7 +24,7 @@ function c65830223.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c65830223.filter,1,nil,tp) return eg:IsExists(c65830223.filter,1,nil,tp)
end end
function c65830223.target(e,tp,eg,ep,ev,re,r,rp,chk) function c65830223.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(300) Duel.SetTargetParam(300)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,1-tp,300) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,1-tp,300)
......
...@@ -32,7 +32,7 @@ function c66214679.filter(c,e,tp) ...@@ -32,7 +32,7 @@ function c66214679.filter(c,e,tp)
end end
function c66214679.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c66214679.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c66214679.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c66214679.filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c66214679.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c66214679.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c66214679.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c66214679.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
......
...@@ -33,8 +33,7 @@ function c66413481.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,8 +33,7 @@ function c66413481.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c66413481.cfilter,1,nil,tp) return eg:IsExists(c66413481.cfilter,1,nil,tp)
end end
function c66413481.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c66413481.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -24,7 +24,7 @@ function c68073522.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,7 +24,7 @@ function c68073522.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c68073522.filter,1,nil) return eg:IsExists(c68073522.filter,1,nil)
end end
function c68073522.target(e,tp,eg,ep,ev,re,r,rp,chk) function c68073522.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
local ct=eg:FilterCount(c68073522.filter,nil) local ct=eg:FilterCount(c68073522.filter,nil)
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(ct*500) Duel.SetTargetParam(ct*500)
......
...@@ -68,7 +68,7 @@ function c68184115.spfilter(c,e,tp) ...@@ -68,7 +68,7 @@ function c68184115.spfilter(c,e,tp)
return c:IsSetCard(0x56) and c:GetCode()~=68184115 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x56) and c:GetCode()~=68184115 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c68184115.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c68184115.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and e:GetHandler():IsFaceup() if chk==0 then return e:GetHandler():IsFaceup()
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c68184115.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c68184115.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -39,8 +39,7 @@ function c69000994.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,8 +39,7 @@ function c69000994.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c69000994.cfilter,1,nil,tp) return eg:IsExists(c69000994.cfilter,1,nil,tp)
end end
function c69000994.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c69000994.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -36,7 +36,7 @@ function c69488544.filter(c,e,tp) ...@@ -36,7 +36,7 @@ function c69488544.filter(c,e,tp)
end end
function c69488544.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c69488544.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c69488544.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c69488544.filter(chkc,e,tp) end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c69488544.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c69488544.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c69488544.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c69488544.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
......
...@@ -45,7 +45,7 @@ function c712559.spfilter(c,e,tp,lv) ...@@ -45,7 +45,7 @@ function c712559.spfilter(c,e,tp,lv)
return c:IsLevelBelow(lv) and c:IsSetCard(0x4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(lv) and c:IsSetCard(0x4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c712559.target(e,tp,eg,ep,ev,re,r,rp,chk) function c712559.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and not e:GetHandler():IsStatus(STATUS_CHAINING) if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c712559.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,e:GetLabel()) end and Duel.IsExistingMatchingCard(c712559.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,e:GetLabel()) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
......
...@@ -56,7 +56,7 @@ function c71645242.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c71645242.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(eg,EVENT_CUSTOM+71645242,e,r,rp,ep,e:GetLabel()) Duel.RaiseEvent(eg,EVENT_CUSTOM+71645242,e,r,rp,ep,e:GetLabel())
end end
function c71645242.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c71645242.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
......
...@@ -26,8 +26,7 @@ function c72710085.filter(c,att) ...@@ -26,8 +26,7 @@ function c72710085.filter(c,att)
return not c:IsAttribute(att) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return not c:IsAttribute(att) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end end
function c72710085.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c72710085.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.IsExistingMatchingCard(c72710085.filter,tp,LOCATION_DECK,0,1,nil,eg:GetFirst():GetAttribute()) end
and Duel.IsExistingMatchingCard(c72710085.filter,tp,LOCATION_DECK,0,1,nil,eg:GetFirst():GetAttribute()) end
e:SetLabel(eg:GetFirst():GetAttribute()) e:SetLabel(eg:GetFirst():GetAttribute())
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -23,8 +23,7 @@ function c74130411.filter(c) ...@@ -23,8 +23,7 @@ function c74130411.filter(c)
return c:IsAttackBelow(1000) and c:IsRace(RACE_MACHINE) and c:IsAbleToHand() return c:IsAttackBelow(1000) and c:IsRace(RACE_MACHINE) and c:IsAbleToHand()
end end
function c74130411.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c74130411.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.IsExistingMatchingCard(c74130411.filter,tp,LOCATION_DECK,0,1,nil) end
and Duel.IsExistingMatchingCard(c74130411.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c74130411.thop(e,tp,eg,ep,ev,re,r,rp) function c74130411.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -25,7 +25,7 @@ function c74923978.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,7 +25,7 @@ function c74923978.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c74923978.cfilter,1,nil,tp) return eg:IsExists(c74923978.cfilter,1,nil,tp)
end end
function c74923978.target(e,tp,eg,ep,ev,re,r,rp,chk) function c74923978.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
local ct=eg:FilterCount(c74923978.cfilter,nil,tp) local ct=eg:FilterCount(c74923978.cfilter,nil,tp)
e:SetLabel(ct) e:SetLabel(ct)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,ct) Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,ct)
......
...@@ -36,8 +36,7 @@ function c75132317.filter(c) ...@@ -36,8 +36,7 @@ function c75132317.filter(c)
return c:IsSetCard(0x7c) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x7c) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function c75132317.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c75132317.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and not e:GetHandler():IsStatus(STATUS_CHAINING) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(c75132317.filter,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(c75132317.filter,tp,LOCATION_DECK,0,1,nil) end
end end
function c75132317.setop(e,tp,eg,ep,ev,re,r,rp) function c75132317.setop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -44,7 +44,7 @@ function c76136345.filter(c,e,tp) ...@@ -44,7 +44,7 @@ function c76136345.filter(c,e,tp)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c76136345.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c76136345.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c76136345.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c76136345.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -21,7 +21,7 @@ function c78540593.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,7 +21,7 @@ function c78540593.descon(e,tp,eg,ep,ev,re,r,rp)
end end
function c78540593.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c78540593.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() end if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......
...@@ -20,7 +20,7 @@ function c80208323.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c80208323.spcon(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsContains(e:GetHandler()) and eg:IsExists(c80208323.spfilter,1,nil,tp) return not eg:IsContains(e:GetHandler()) and eg:IsExists(c80208323.spfilter,1,nil,tp)
end end
function c80208323.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c80208323.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -8,7 +8,6 @@ function c82116191.initial_effect(c) ...@@ -8,7 +8,6 @@ function c82116191.initial_effect(c)
e1:SetCode(EVENT_TO_GRAVE) e1:SetCode(EVENT_TO_GRAVE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c82116191.atkcon) e1:SetCondition(c82116191.atkcon)
e1:SetTarget(c82116191.atktg)
e1:SetOperation(c82116191.atkop) e1:SetOperation(c82116191.atkop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
...@@ -18,9 +17,6 @@ end ...@@ -18,9 +17,6 @@ end
function c82116191.atkcon(e,tp,eg,ep,ev,re,r,rp) function c82116191.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c82116191.filter,1,nil) return eg:IsExists(c82116191.filter,1,nil)
end end
function c82116191.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end
end
function c82116191.atkop(e,tp,eg,ep,ev,re,r,rp) function c82116191.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
......
...@@ -25,7 +25,7 @@ function c82705573.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,7 +25,7 @@ function c82705573.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c82705573.filter,1,nil,tp) return eg:IsExists(c82705573.filter,1,nil,tp)
end end
function c82705573.target(e,tp,eg,ep,ev,re,r,rp,chk) function c82705573.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(500) Duel.SetTargetParam(500)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500)
......
...@@ -25,7 +25,7 @@ function c83027236.condtion(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,7 +25,7 @@ function c83027236.condtion(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and bit.band(r,REASON_EFFECT)~=0 and eg:IsExists(c83027236.cfilter,1,nil,1-tp) return rp~=tp and bit.band(r,REASON_EFFECT)~=0 and eg:IsExists(c83027236.cfilter,1,nil,1-tp)
end end
function c83027236.target(e,tp,eg,ep,ev,re,r,rp,chk) function c83027236.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,1-tp,3) Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,1-tp,3)
end end
function c83027236.operation(e,tp,eg,ep,ev,re,r,rp) function c83027236.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -39,7 +39,7 @@ function c8323633.rmcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c8323633.rmcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c8323633.filter,1,nil,e:GetLabel()) and rp~=tp return eg:IsExists(c8323633.filter,1,nil,e:GetLabel()) and rp~=tp
end end
function c8323633.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c8323633.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
local g=eg:Filter(c8323633.filter,nil,e:GetLabel()) local g=eg:Filter(c8323633.filter,nil,e:GetLabel())
g:AddCard(e:GetHandler()) g:AddCard(e:GetHandler())
......
...@@ -32,7 +32,7 @@ function c83715234.desfilter(c) ...@@ -32,7 +32,7 @@ function c83715234.desfilter(c)
end end
function c83715234.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c83715234.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() and c83715234.desfilter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() and c83715234.desfilter(chkc) end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and not e:GetHandler():IsStatus(STATUS_CHAINING) if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING)
and Duel.IsExistingTarget(c83715234.desfilter,tp,0,LOCATION_ONFIELD,1,nil) end and Duel.IsExistingTarget(c83715234.desfilter,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c83715234.desfilter,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,c83715234.desfilter,tp,0,LOCATION_ONFIELD,1,1,nil)
......
...@@ -50,7 +50,7 @@ function c84268896.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c84268896.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and not eg:IsContains(e:GetHandler()) and eg:IsExists(c84268896.filter,1,nil) return Duel.GetTurnPlayer()~=tp and not eg:IsContains(e:GetHandler()) and eg:IsExists(c84268896.filter,1,nil)
end end
function c84268896.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c84268896.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
...@@ -22,7 +22,7 @@ function c85562745.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,7 +22,7 @@ function c85562745.con(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and bit.band(r,REASON_BATTLE)==0 and re and re:GetHandler():GetCode()~=85562745 return ep~=tp and bit.band(r,REASON_BATTLE)==0 and re and re:GetHandler():GetCode()~=85562745
end end
function c85562745.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c85562745.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(300) Duel.SetTargetParam(300)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,300) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,300)
......
...@@ -27,8 +27,7 @@ function c85893201.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -27,8 +27,7 @@ function c85893201.descon(e,tp,eg,ep,ev,re,r,rp)
end end
function c85893201.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c85893201.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
and Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......
...@@ -29,7 +29,7 @@ function c85967160.adcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,7 +29,7 @@ function c85967160.adcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp return ep==tp
end end
function c85967160.adtg(e,tp,eg,ep,ev,re,r,rp,chk) function c85967160.adtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return ep==tp and e:GetHandler():IsRelateToEffect(e) end if chk==0 then return ep==tp end
end end
function c85967160.adop(e,tp,eg,ep,ev,re,r,rp) function c85967160.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -65,8 +65,7 @@ function c87259933.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,8 +65,7 @@ function c87259933.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c87259933.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c87259933.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c87259933.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c87259933.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -8,7 +8,6 @@ function c87473172.initial_effect(c) ...@@ -8,7 +8,6 @@ function c87473172.initial_effect(c)
e1:SetCode(EVENT_DESTROYED) e1:SetCode(EVENT_DESTROYED)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c87473172.atkcon) e1:SetCondition(c87473172.atkcon)
e1:SetTarget(c87473172.atktg)
e1:SetOperation(c87473172.atkop) e1:SetOperation(c87473172.atkop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
...@@ -19,9 +18,6 @@ end ...@@ -19,9 +18,6 @@ end
function c87473172.atkcon(e,tp,eg,ep,ev,re,r,rp) function c87473172.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c87473172.cfilter,1,nil,tp) return eg:IsExists(c87473172.cfilter,1,nil,tp)
end end
function c87473172.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end
end
function c87473172.atkop(e,tp,eg,ep,ev,re,r,rp) function c87473172.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
......
...@@ -17,7 +17,7 @@ function c87774234.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c87774234.condition(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_DECK) and e:GetHandler():GetPreviousControler()==tp return bit.band(r,REASON_EFFECT)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_DECK) and e:GetHandler():GetPreviousControler()==tp
end end
function c87774234.target(e,tp,eg,ep,ev,re,r,rp,chk) function c87774234.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -45,7 +45,7 @@ function c89493368.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c89493368.damcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsControler,1,nil,1-tp) return eg:IsExists(Card.IsControler,1,nil,1-tp)
end end
function c89493368.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c89493368.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
e:GetHandler():RegisterFlagEffect(89493368,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(89493368,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800)
end end
......
...@@ -20,7 +20,7 @@ function c90953320.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c90953320.drcon(e,tp,eg,ep,ev,re,r,rp)
return eg:GetCount()==1 and tg~=e:GetHandler() and tg:IsSummonType(SUMMON_TYPE_SYNCHRO) return eg:GetCount()==1 and tg~=e:GetHandler() and tg:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c90953320.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c90953320.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
...@@ -36,7 +36,7 @@ function c92394653.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c92394653.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c92394653.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c92394653.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToHand() end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToHand() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(1-tp,Card.IsAbleToHand,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(1-tp,Card.IsAbleToHand,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
......
...@@ -34,7 +34,7 @@ function c94693857.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,7 +34,7 @@ function c94693857.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c94693857.filter,2,nil) return eg:IsExists(c94693857.filter,2,nil)
end end
function c94693857.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c94693857.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -21,7 +21,7 @@ function c95376428.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,7 +21,7 @@ function c95376428.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsPreviousLocation,1,nil,LOCATION_EXTRA) return eg:IsExists(Card.IsPreviousLocation,1,nil,LOCATION_EXTRA)
end end
function c95376428.target(e,tp,eg,ep,ev,re,r,rp,chk) function c95376428.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return true end
end end
function c95376428.filter(c,tp) function c95376428.filter(c,tp)
return c:GetSummonPlayer()==tp return c:GetSummonPlayer()==tp
......
...@@ -27,7 +27,7 @@ function c95714077.filter(c) ...@@ -27,7 +27,7 @@ function c95714077.filter(c)
end end
function c95714077.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c95714077.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsRelateToEffect(e) and not c:IsStatus(STATUS_CHAINING) if chk==0 then return not c:IsStatus(STATUS_CHAINING)
and Duel.IsExistingMatchingCard(c95714077.filter,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(c95714077.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -32,8 +32,7 @@ function c96594609.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,8 +32,7 @@ function c96594609.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c96594609.cfilter,1,nil,tp) return eg:IsExists(c96594609.cfilter,1,nil,tp)
end end
function c96594609.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c96594609.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -33,7 +33,7 @@ function c96789758.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c96789758.drcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp return ep==tp
end end
function c96789758.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c96789758.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return ep==tp and e:GetHandler():IsRelateToEffect(e) end if chk==0 then return ep==tp end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
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