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)
c:RegisterEffect(e2)
end
end
end
\ No newline at end of file
end
......@@ -63,4 +63,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
else
Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end
end
\ No newline at end of file
end
......@@ -90,4 +90,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
function s.efilter(e,re)
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP)
end
\ No newline at end of file
end
......@@ -71,4 +71,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
Duel.RemoveCounter(tp,1,0,0x6a,3,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -79,4 +79,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -95,4 +95,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
end
......@@ -95,4 +95,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -69,4 +69,4 @@ function s.slop(e,tp,eg,ep,ev,re,r,rp)
if sg:GetCount()>0 then
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -95,4 +95,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
tc:RegisterEffect(e2)
end
end
\ No newline at end of file
end
......@@ -97,4 +97,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if tc and tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -89,4 +89,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
end
......@@ -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
local token=Duel.CreateToken(tp,id+o)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end
\ No newline at end of file
end
......@@ -87,4 +87,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
end
function s.splimit(e,c)
return not c:IsRace(RACE_DRAGON)
end
\ No newline at end of file
end
......@@ -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)
aux.GCheckAdditional=nil
return res
end
\ No newline at end of file
end
......@@ -88,4 +88,4 @@ end
function s.indtg(e,c)
local tc=e:GetHandler()
return c==tc or c==tc:GetBattleTarget()
end
\ No newline at end of file
end
......@@ -92,4 +92,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
end
function s.eqlimit(e,c)
return c==e:GetLabelObject()
end
\ No newline at end of file
end
......@@ -104,4 +104,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2)
end
Duel.SpecialSummonComplete()
end
\ No newline at end of file
end
......@@ -108,4 +108,4 @@ end
function s.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT+REASON_REPLACE)
end
\ No newline at end of file
end
......@@ -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)
end
end
end
\ No newline at end of file
end
......@@ -69,4 +69,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -68,4 +68,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SSet(tp,g:GetFirst())
end
end
end
\ No newline at end of file
end
......@@ -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)
tc:RegisterEffect(e1)
end
end
\ No newline at end of file
end
......@@ -65,4 +65,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -60,4 +60,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(hg,nil,REASON_EFFECT)
end
end
end
\ No newline at end of file
end
......@@ -69,4 +69,4 @@ end
function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end
end
\ No newline at end of file
end
......@@ -153,4 +153,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
bc:RegisterEffect(e3)
end
end
end
\ No newline at end of file
end
......@@ -51,4 +51,4 @@ end
function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end
end
\ No newline at end of file
end
......@@ -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)
end
end
end
\ No newline at end of file
end
......@@ -71,4 +71,4 @@ function s.upop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1)
end
end
end
\ No newline at end of file
end
......@@ -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)
end
end
end
\ No newline at end of file
end
......@@ -73,4 +73,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE)
end
end
\ No newline at end of file
end
......@@ -79,4 +79,4 @@ function s.adop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT)
end
end
end
\ No newline at end of file
end
......@@ -83,4 +83,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
end
end
\ No newline at end of file
end
......@@ -80,4 +80,4 @@ end
function s.indtg(e,c)
local tc=e:GetHandler()
return c==tc or c==tc:GetBattleTarget()
end
\ No newline at end of file
end
......@@ -80,4 +80,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_EFFECT,tp,true)
end
end
\ No newline at end of file
end
......@@ -84,4 +84,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
function s.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsSetCard(0x71)
end
\ No newline at end of file
end
......@@ -90,4 +90,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
function s.efilter(e,re)
return re:IsActiveType(TYPE_EFFECT)
end
\ No newline at end of file
end
......@@ -106,4 +106,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end
function s.eqlimit(e,c)
return c==e:GetLabelObject()
end
\ No newline at end of file
end
......@@ -88,4 +88,4 @@ end
function s.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
\ No newline at end of file
end
......@@ -45,4 +45,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
end
function s.atktg(e,c)
return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_ILLUSION+RACE_SPELLCASTER)
end
\ No newline at end of file
end
......@@ -74,4 +74,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -79,4 +79,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -144,4 +144,4 @@ function s.fdfilter(c)
end
function s.gdfilter(c)
return c:IsLocation(LOCATION_MZONE) and c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)
end
\ No newline at end of file
end
......@@ -148,4 +148,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -83,4 +83,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst())
end
end
\ No newline at end of file
end
......@@ -90,4 +90,4 @@ function s.matop(e,tp,eg,ep,ev,re,r,rp)
local tc=tg:GetFirst()
Duel.Overlay(tc,Group.FromCards(c))
end
end
\ No newline at end of file
end
......@@ -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)
tc:CompleteProcedure()
end
end
\ No newline at end of file
end
......@@ -79,4 +79,4 @@ end
function s.synlimit(e,c)
if not c then return false end
return not c:IsLevelBelow(8)
end
\ No newline at end of file
end
......@@ -79,4 +79,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then
Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end
end
\ No newline at end of file
end
......@@ -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
local ex,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY)
return ex and tg~=nil and tc+tg:FilterCount(s.cfilter3,nil)-tg:GetCount()>0
end
\ No newline at end of file
end
......@@ -78,4 +78,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(sg)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -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
Duel.ReturnToField(e:GetLabelObject())
end
end
\ No newline at end of file
end
......@@ -95,4 +95,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -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)
tc:RegisterEffect(e2)
end
end
\ No newline at end of file
end
......@@ -92,4 +92,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(atk)
tc:RegisterEffect(e1)
end
end
\ No newline at end of file
end
......@@ -78,4 +78,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(TYPE_TRAP+TYPE_CONTINUOUS)
tc:RegisterEffect(e1)
end
end
\ No newline at end of file
end
......@@ -72,4 +72,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then
Duel.SendtoHand(c,nil,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -148,4 +148,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT)
end
end
end
\ No newline at end of file
end
......@@ -54,4 +54,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -62,4 +62,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then
Duel.SSet(tp,c)
end
end
\ No newline at end of file
end
......@@ -56,4 +56,4 @@ end
function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end
end
\ No newline at end of file
end
......@@ -89,4 +89,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp)
end
function s.eftg(e,c)
return c:IsSetCard(0x1ae)
end
\ No newline at end of file
end
......@@ -96,4 +96,4 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev)
end
\ No newline at end of file
end
......@@ -108,4 +108,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp)
if tc:GetFlagEffectLabel(id)==fid then
Duel.Destroy(tc,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -100,4 +100,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then
Duel.SendtoHand(c,nil,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -70,4 +70,4 @@ end
function s.indtg(e,c)
local tc=e:GetHandler()
return c==tc or c==tc:GetBattleTarget()
end
\ No newline at end of file
end
......@@ -91,4 +91,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(dg,REASON_EFFECT)
end
end
end
\ No newline at end of file
end
......@@ -111,4 +111,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1)
end
end
\ No newline at end of file
end
......@@ -91,4 +91,4 @@ function s.efilter(e,ct)
local p=e:GetHandlerPlayer()
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)
end
\ No newline at end of file
end
......@@ -84,4 +84,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE)
end
end
end
\ No newline at end of file
end
......@@ -86,4 +86,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsRace(RACE_INSECT+RACE_PLANT+RACE_REPTILE)
end
\ No newline at end of file
end
......@@ -70,4 +70,4 @@ end
function s.indtg(e,c)
local tc=e:GetHandler()
return c==tc or c==tc:GetBattleTarget()
end
\ No newline at end of file
end
......@@ -102,4 +102,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
\ No newline at end of file
end
......@@ -58,4 +58,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
function s.atktg(e,c)
return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_ILLUSION+RACE_SPELLCASTER)
end
\ No newline at end of file
end
......@@ -96,4 +96,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SendtoGrave(tc,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -98,4 +98,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp)
end
function s.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(tp,Duel.GetLP(tp)-1000)
end
\ No newline at end of file
end
......@@ -81,4 +81,4 @@ function s.posop2(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(tc,POS_FACEUP_ATTACK)
end
end
end
\ No newline at end of file
end
......@@ -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 sg=g:RandomSelect(e:GetOwnerPlayer(),d)
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
\ No newline at end of file
end
......@@ -93,4 +93,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
\ No newline at end of file
end
......@@ -85,4 +85,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp)
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -63,4 +63,4 @@ function s.repval(e,c)
end
function s.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
end
\ No newline at end of file
end
......@@ -78,4 +78,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
\ No newline at end of file
end
......@@ -50,4 +50,4 @@ function s.handcon(e)
end
function s.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_FIRE+ATTRIBUTE_WATER)
end
\ No newline at end of file
end
......@@ -84,4 +84,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1)
end
end
end
\ No newline at end of file
end
......@@ -64,4 +64,4 @@ function s.droperation(e,tp,eg,ep,ev,re,r,rp)
local gc=g:GetClassCount(Card.GetRace)
Duel.Hint(HINT_CARD,0,id)
Duel.Draw(tp,gc,REASON_EFFECT)
end
\ No newline at end of file
end
......@@ -87,4 +87,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
end
function s.actlimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER)
end
\ No newline at end of file
end
......@@ -61,4 +61,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
end
end
end
\ No newline at end of file
end
......@@ -101,4 +101,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
end
end
\ No newline at end of file
end
......@@ -96,4 +96,4 @@ function s.couop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
\ No newline at end of file
end
......@@ -76,4 +76,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2)
end
Duel.SpecialSummonComplete()
end
\ No newline at end of file
end
......@@ -113,4 +113,4 @@ function s.fsop(e,tp,eg,ep,ev,re,r,rp)
end
tc:CompleteProcedure()
end
end
\ No newline at end of file
end
......@@ -66,4 +66,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE)
end
end
\ No newline at end of file
end
......@@ -52,4 +52,4 @@ end
function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment