Commit 95597152 authored by salix5's avatar salix5

newline at EOF

parent 6975d6f4
...@@ -92,4 +92,4 @@ function s.atkop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,4 +92,4 @@ function s.atkop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
end end
end end
\ No newline at end of file
...@@ -63,4 +63,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,4 +63,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
else else
Duel.MoveSequence(tc,SEQ_DECKBOTTOM) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
\ No newline at end of file
...@@ -90,4 +90,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,4 +90,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.efilter(e,re) function s.efilter(e,re)
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) return re:IsActiveType(TYPE_SPELL+TYPE_TRAP)
end end
\ No newline at end of file
...@@ -71,4 +71,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,4 +71,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.RemoveCounter(tp,1,0,0x6a,3,REASON_EFFECT) Duel.RemoveCounter(tp,1,0,0x6a,3,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -79,4 +79,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,4 +79,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -95,4 +95,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,4 +95,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
\ No newline at end of file
...@@ -95,4 +95,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,4 +95,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -69,4 +69,4 @@ function s.slop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,4 +69,4 @@ function s.slop(e,tp,eg,ep,ev,re,r,rp)
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -95,4 +95,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,4 +95,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone() local e2=e1:Clone()
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
end end
\ No newline at end of file
...@@ -97,4 +97,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,4 +97,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -89,4 +89,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,4 +89,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
\ No newline at end of file
...@@ -59,4 +59,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,4 +59,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp)
or not Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,0,0,1,RACE_THUNDER,ATTRIBUTE_DARK) then return end or not Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,0,0,1,RACE_THUNDER,ATTRIBUTE_DARK) then return end
local token=Duel.CreateToken(tp,id+o) local token=Duel.CreateToken(tp,id+o)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end end
\ No newline at end of file
...@@ -87,4 +87,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,4 +87,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
end end
function s.splimit(e,c) function s.splimit(e,c)
return not c:IsRace(RACE_DRAGON) return not c:IsRace(RACE_DRAGON)
end end
\ No newline at end of file
...@@ -152,4 +152,4 @@ function s.RitualUltimateFilter(c,filter,e,tp,m1,m2,attack_function,greater_or_e ...@@ -152,4 +152,4 @@ function s.RitualUltimateFilter(c,filter,e,tp,m1,m2,attack_function,greater_or_e
local res=mg:CheckSubGroup(s.RitualCheck,1,#mg,tp,c,atk,greater_or_equal) local res=mg:CheckSubGroup(s.RitualCheck,1,#mg,tp,c,atk,greater_or_equal)
aux.GCheckAdditional=nil aux.GCheckAdditional=nil
return res return res
end end
\ No newline at end of file
...@@ -88,4 +88,4 @@ end ...@@ -88,4 +88,4 @@ end
function s.indtg(e,c) function s.indtg(e,c)
local tc=e:GetHandler() local tc=e:GetHandler()
return c==tc or c==tc:GetBattleTarget() return c==tc or c==tc:GetBattleTarget()
end end
\ No newline at end of file
...@@ -92,4 +92,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,4 +92,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.eqlimit(e,c) function s.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
\ No newline at end of file
...@@ -104,4 +104,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,4 +104,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
\ No newline at end of file
...@@ -108,4 +108,4 @@ end ...@@ -108,4 +108,4 @@ end
function s.desrepop(e,tp,eg,ep,ev,re,r,rp) function s.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,0,id)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT+REASON_REPLACE) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT+REASON_REPLACE)
end end
\ No newline at end of file
...@@ -74,4 +74,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,4 +74,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
end end
\ No newline at end of file
...@@ -69,4 +69,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,4 +69,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -68,4 +68,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,4 +68,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SSet(tp,g:GetFirst()) Duel.SSet(tp,g:GetFirst())
end end
end end
end end
\ No newline at end of file
...@@ -143,4 +143,4 @@ function s.attop(e,tp,eg,ep,ev,re,r,rp) ...@@ -143,4 +143,4 @@ function s.attop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
\ No newline at end of file
...@@ -65,4 +65,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,4 +65,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -60,4 +60,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,4 +60,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(hg,nil,REASON_EFFECT) Duel.SendtoHand(hg,nil,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -69,4 +69,4 @@ end ...@@ -69,4 +69,4 @@ end
function s.setop(e,tp,eg,ep,ev,re,r,rp) function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end
end end
\ No newline at end of file
...@@ -153,4 +153,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -153,4 +153,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
bc:RegisterEffect(e3) bc:RegisterEffect(e3)
end end
end end
end end
\ No newline at end of file
...@@ -51,4 +51,4 @@ end ...@@ -51,4 +51,4 @@ end
function s.setop(e,tp,eg,ep,ev,re,r,rp) function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end
end end
\ No newline at end of file
...@@ -75,4 +75,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,4 +75,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE)
end end
end end
end end
\ No newline at end of file
...@@ -71,4 +71,4 @@ function s.upop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,4 +71,4 @@ function s.upop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
end end
\ No newline at end of file
...@@ -109,4 +109,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -109,4 +109,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,math.floor(atk/2),REASON_EFFECT) Duel.Damage(1-tp,math.floor(atk/2),REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -73,4 +73,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,4 +73,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE)
end end
end end
\ No newline at end of file
...@@ -79,4 +79,4 @@ function s.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,4 +79,4 @@ function s.adop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -83,4 +83,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,4 +83,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -80,4 +80,4 @@ end ...@@ -80,4 +80,4 @@ end
function s.indtg(e,c) function s.indtg(e,c)
local tc=e:GetHandler() local tc=e:GetHandler()
return c==tc or c==tc:GetBattleTarget() return c==tc or c==tc:GetBattleTarget()
end end
\ No newline at end of file
...@@ -80,4 +80,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,4 +80,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_EFFECT,tp,true) Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_EFFECT,tp,true)
end end
end end
\ No newline at end of file
...@@ -84,4 +84,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,4 +84,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.aclimit(e,re,tp) function s.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsSetCard(0x71) return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsSetCard(0x71)
end end
\ No newline at end of file
...@@ -90,4 +90,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,4 +90,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.efilter(e,re) function s.efilter(e,re)
return re:IsActiveType(TYPE_EFFECT) return re:IsActiveType(TYPE_EFFECT)
end end
\ No newline at end of file
...@@ -106,4 +106,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,4 +106,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.eqlimit(e,c) function s.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
\ No newline at end of file
...@@ -88,4 +88,4 @@ end ...@@ -88,4 +88,4 @@ end
function s.damop(e,tp,eg,ep,ev,re,r,rp) function s.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT) Duel.Damage(p,d,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -45,4 +45,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,4 +45,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.atktg(e,c) function s.atktg(e,c)
return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_ILLUSION+RACE_SPELLCASTER) return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_ILLUSION+RACE_SPELLCASTER)
end end
\ No newline at end of file
...@@ -74,4 +74,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,4 +74,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -79,4 +79,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,4 +79,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -144,4 +144,4 @@ function s.fdfilter(c) ...@@ -144,4 +144,4 @@ function s.fdfilter(c)
end end
function s.gdfilter(c) function s.gdfilter(c)
return c:IsLocation(LOCATION_MZONE) and c:IsFaceup() or c:IsLocation(LOCATION_GRAVE) return c:IsLocation(LOCATION_MZONE) and c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)
end end
\ No newline at end of file
...@@ -148,4 +148,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -148,4 +148,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -83,4 +83,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,4 +83,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst()) Duel.SSet(tp,g:GetFirst())
end end
end end
\ No newline at end of file
...@@ -90,4 +90,4 @@ function s.matop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,4 +90,4 @@ function s.matop(e,tp,eg,ep,ev,re,r,rp)
local tc=tg:GetFirst() local tc=tg:GetFirst()
Duel.Overlay(tc,Group.FromCards(c)) Duel.Overlay(tc,Group.FromCards(c))
end end
end end
\ No newline at end of file
...@@ -103,4 +103,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,4 +103,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
\ No newline at end of file
...@@ -79,4 +79,4 @@ end ...@@ -79,4 +79,4 @@ end
function s.synlimit(e,c) function s.synlimit(e,c)
if not c then return false end if not c then return false end
return not c:IsLevelBelow(8) return not c:IsLevelBelow(8)
end end
\ No newline at end of file
...@@ -79,4 +79,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,4 +79,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true) Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
end end
\ No newline at end of file
...@@ -68,4 +68,4 @@ function s.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,4 +68,4 @@ function s.condition2(e,tp,eg,ep,ev,re,r,rp)
if not re:IsActiveType(TYPE_MONSTER) then return false end if not re:IsActiveType(TYPE_MONSTER) then return false end
local ex,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY) local ex,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY)
return ex and tg~=nil and tc+tg:FilterCount(s.cfilter3,nil)-tg:GetCount()>0 return ex and tg~=nil and tc+tg:FilterCount(s.cfilter3,nil)-tg:GetCount()>0
end end
\ No newline at end of file
...@@ -78,4 +78,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,4 +78,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(sg) Duel.HintSelection(sg)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -107,4 +107,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,4 +107,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnCount()~=e:GetLabel() and ec:IsLocation(LOCATION_REMOVED) then if Duel.GetTurnCount()~=e:GetLabel() and ec:IsLocation(LOCATION_REMOVED) then
Duel.ReturnToField(e:GetLabelObject()) Duel.ReturnToField(e:GetLabelObject())
end end
end end
\ No newline at end of file
...@@ -95,4 +95,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,4 +95,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -47,4 +47,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,4 +47,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
end end
\ No newline at end of file
...@@ -92,4 +92,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,4 +92,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(atk) e1:SetValue(atk)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
\ No newline at end of file
...@@ -78,4 +78,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,4 +78,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(TYPE_TRAP+TYPE_CONTINUOUS) e1:SetValue(TYPE_TRAP+TYPE_CONTINUOUS)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
\ No newline at end of file
...@@ -72,4 +72,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,4 +72,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.SendtoHand(c,nil,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -148,4 +148,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -148,4 +148,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -54,4 +54,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,4 +54,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -62,4 +62,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,4 +62,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.SSet(tp,c) Duel.SSet(tp,c)
end end
end end
\ No newline at end of file
...@@ -56,4 +56,4 @@ end ...@@ -56,4 +56,4 @@ end
function s.setop(e,tp,eg,ep,ev,re,r,rp) function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end
end end
\ No newline at end of file
...@@ -89,4 +89,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,4 +89,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.eftg(e,c) function s.eftg(e,c)
return c:IsSetCard(0x1ae) return c:IsSetCard(0x1ae)
end end
\ No newline at end of file
...@@ -96,4 +96,4 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -96,4 +96,4 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.negop(e,tp,eg,ep,ev,re,r,rp) function s.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
end end
\ No newline at end of file
...@@ -108,4 +108,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -108,4 +108,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp)
if tc:GetFlagEffectLabel(id)==fid then if tc:GetFlagEffectLabel(id)==fid then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -100,4 +100,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,4 +100,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.SendtoHand(c,nil,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -70,4 +70,4 @@ end ...@@ -70,4 +70,4 @@ end
function s.indtg(e,c) function s.indtg(e,c)
local tc=e:GetHandler() local tc=e:GetHandler()
return c==tc or c==tc:GetBattleTarget() return c==tc or c==tc:GetBattleTarget()
end end
\ No newline at end of file
...@@ -91,4 +91,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,4 +91,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(dg,REASON_EFFECT) Duel.Destroy(dg,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -111,4 +111,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -111,4 +111,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
\ No newline at end of file
...@@ -91,4 +91,4 @@ function s.efilter(e,ct) ...@@ -91,4 +91,4 @@ function s.efilter(e,ct)
local p=e:GetHandlerPlayer() local p=e:GetHandlerPlayer()
local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER) local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
return p==tp and te:IsHasType(EFFECT_TYPE_ACTIVATE) and te:GetHandler():IsCode(37613663) return p==tp and te:IsHasType(EFFECT_TYPE_ACTIVATE) and te:GetHandler():IsCode(37613663)
end end
\ No newline at end of file
...@@ -84,4 +84,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,4 +84,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE) Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE)
end end
end end
end end
\ No newline at end of file
...@@ -86,4 +86,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,4 +86,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.splimit(e,c,sump,sumtype,sumpos,targetp,se) function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsRace(RACE_INSECT+RACE_PLANT+RACE_REPTILE) return not c:IsRace(RACE_INSECT+RACE_PLANT+RACE_REPTILE)
end end
\ No newline at end of file
...@@ -70,4 +70,4 @@ end ...@@ -70,4 +70,4 @@ end
function s.indtg(e,c) function s.indtg(e,c)
local tc=e:GetHandler() local tc=e:GetHandler()
return c==tc or c==tc:GetBattleTarget() return c==tc or c==tc:GetBattleTarget()
end end
\ No newline at end of file
...@@ -102,4 +102,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,4 +102,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
end end
\ No newline at end of file
...@@ -58,4 +58,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,4 +58,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.atktg(e,c) function s.atktg(e,c)
return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_ILLUSION+RACE_SPELLCASTER) return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_ILLUSION+RACE_SPELLCASTER)
end end
\ No newline at end of file
...@@ -96,4 +96,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,4 +96,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoGrave(tc,REASON_EFFECT) Duel.SendtoGrave(tc,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -98,4 +98,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,4 +98,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.damop(e,tp,eg,ep,ev,re,r,rp) function s.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(tp,Duel.GetLP(tp)-1000) Duel.SetLP(tp,Duel.GetLP(tp)-1000)
end end
\ No newline at end of file
...@@ -81,4 +81,4 @@ function s.posop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,4 +81,4 @@ function s.posop2(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(tc,POS_FACEUP_ATTACK) Duel.ChangePosition(tc,POS_FACEUP_ATTACK)
end end
end end
end end
\ No newline at end of file
...@@ -112,4 +112,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -112,4 +112,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetFieldGroupCount(e:GetOwnerPlayer(),LOCATION_HAND,0)-(Duel.GetFieldGroupCount(e:GetOwnerPlayer(),0,LOCATION_ONFIELD)+6) local d=Duel.GetFieldGroupCount(e:GetOwnerPlayer(),LOCATION_HAND,0)-(Duel.GetFieldGroupCount(e:GetOwnerPlayer(),0,LOCATION_ONFIELD)+6)
local sg=g:RandomSelect(e:GetOwnerPlayer(),d) local sg=g:RandomSelect(e:GetOwnerPlayer(),d)
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -93,4 +93,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,4 +93,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
end end
\ No newline at end of file
...@@ -85,4 +85,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,4 +85,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp)
if re:GetHandler():IsRelateToEffect(re) then if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -63,4 +63,4 @@ function s.repval(e,c) ...@@ -63,4 +63,4 @@ function s.repval(e,c)
end end
function s.repop(e,tp,eg,ep,ev,re,r,rp) function s.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -78,4 +78,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,4 +78,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
\ No newline at end of file
...@@ -50,4 +50,4 @@ function s.handcon(e) ...@@ -50,4 +50,4 @@ function s.handcon(e)
end end
function s.aclimit(e,re,tp) function s.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_FIRE+ATTRIBUTE_WATER) return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_FIRE+ATTRIBUTE_WATER)
end end
\ No newline at end of file
...@@ -84,4 +84,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,4 +84,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
end end
\ No newline at end of file
...@@ -64,4 +64,4 @@ function s.droperation(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,4 +64,4 @@ function s.droperation(e,tp,eg,ep,ev,re,r,rp)
local gc=g:GetClassCount(Card.GetRace) local gc=g:GetClassCount(Card.GetRace)
Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,0,id)
Duel.Draw(tp,gc,REASON_EFFECT) Duel.Draw(tp,gc,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -87,4 +87,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,4 +87,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.actlimit(e,re,tp) function s.actlimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) return re:IsActiveType(TYPE_MONSTER)
end end
\ No newline at end of file
...@@ -61,4 +61,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,4 +61,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -101,4 +101,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,4 +101,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
\ No newline at end of file
...@@ -96,4 +96,4 @@ function s.couop(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,4 +96,4 @@ function s.couop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
end end
\ No newline at end of file
...@@ -76,4 +76,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,4 +76,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
\ No newline at end of file
...@@ -113,4 +113,4 @@ function s.fsop(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,4 +113,4 @@ function s.fsop(e,tp,eg,ep,ev,re,r,rp)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
\ No newline at end of file
...@@ -66,4 +66,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,4 +66,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE)
end end
end end
\ No newline at end of file
...@@ -52,4 +52,4 @@ end ...@@ -52,4 +52,4 @@ end
function s.setop(e,tp,eg,ep,ev,re,r,rp) function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end
end end
\ No newline at end of file
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