Commit 8cb68155 authored by POLYMER's avatar POLYMER

fix

parent 8e619411
......@@ -106,7 +106,6 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
Debug.Message(Duel.GetFlagEffect(tp,11451731))
end
function cm.thfilter(c)
return c:IsSetCard(0x6977) and c:IsAbleToHand() and not c:IsCode(m)
......
......@@ -71,8 +71,8 @@ end
function cm.sp1filter(c,e,tp)
return c:IsCode(15004106) and c:IsCanBeSpecialSummoned(e,0,tp,true,true)
end
function cm.sp2filter(c,e,tp)
return c:IsCode(15004107) and c:IsCanBeSpecialSummoned(e,0,tp,true,true) and Duel.IsExistingMatchingCard(cm.bugfilter,tp,LOCATION_MZONE,0,1,aux.ExceptThisCard(e))
function cm.sp2filter(c,e,tp,chk)
return c:IsCode(15004107) and c:IsCanBeSpecialSummoned(e,0,tp,true,true) and ((chk==0 and Duel.IsExistingMatchingCard(cm.bugfilter,tp,LOCATION_MZONE,0,1,e:GetHandler())) or (chk~=0 and Duel.IsExistingMatchingCard(cm.bugfilter,tp,LOCATION_MZONE,0,1,aux.ExceptThisCard(e))))
end
function cm.bugfilter(c)
return c:IsRace(RACE_INSECT) and c:IsFaceup()
......@@ -80,7 +80,7 @@ end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.GetMZoneCount(tp,c)>0 and c:IsAbleToDeck()
and (Duel.IsExistingMatchingCard(cm.sp1filter,tp,LOCATION_DECK,0,1,nil,e,tp) or Duel.IsExistingMatchingCard(cm.sp2filter,tp,LOCATION_DECK,0,1,nil,e,tp)) end
and (Duel.IsExistingMatchingCard(cm.sp1filter,tp,LOCATION_DECK,0,1,nil,e,tp) or Duel.IsExistingMatchingCard(cm.sp2filter,tp,LOCATION_DECK,0,1,nil,e,tp,0)) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
......@@ -88,7 +88,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end
if not c:IsAbleToDeck() then return end
local b1=Duel.IsExistingMatchingCard(cm.sp1filter,tp,LOCATION_DECK,0,1,nil,e,tp)
local b2=Duel.IsExistingMatchingCard(cm.sp2filter,tp,LOCATION_DECK,0,1,nil,e,tp)
local b2=Duel.IsExistingMatchingCard(cm.sp2filter,tp,LOCATION_DECK,0,1,nil,e,tp,1)
local op=0
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(m,0),aux.Stringid(m,1))
......@@ -110,7 +110,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)~=0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.sp2filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,cm.sp2filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp,1)
local tc=g:GetFirst()
if tc then
Duel.SpecialSummon(tc,SUMMON_VALUE_LV,tp,tp,true,true,POS_FACEUP)
......
if not require and dofile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=dofile(str)
else
require_list[str]=dofile(str..".lua")
end
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c15000000") end) then require("script/c15000000") end
local m=15005050
local cm=_G["c"..m]
cm.name="异闻鸣星-支原体"
cm.name="异闻鸣星-伊奥"
function cm.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
......
if not require and dofile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=dofile(str)
else
require_list[str]=dofile(str..".lua")
end
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c15000000") end) then require("script/c15000000") end
local m=15005052
local cm=_G["c"..m]
cm.name="异闻鸣星-衣原体"
cm.name="异闻鸣星-欧罗巴"
function cm.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
......
if not require and dofile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=dofile(str)
else
require_list[str]=dofile(str..".lua")
end
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c15000000") end) then require("script/c15000000") end
local m=15005054
local cm=_G["c"..m]
cm.name="异闻鸣星-立克次氏体"
cm.name="异闻鸣星-盖尼米得"
function cm.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
......
if not require and dofile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=dofile(str)
else
require_list[str]=dofile(str..".lua")
end
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c15000000") end) then require("script/c15000000") end
local m=15005056
local cm=_G["c"..m]
......
if not require and dofile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=dofile(str)
else
require_list[str]=dofile(str..".lua")
end
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c15000000") end) then require("script/c15000000") end
local m=15005063
local cm=_G["c"..m]
......
if not require and dofile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=dofile(str)
else
require_list[str]=dofile(str..".lua")
end
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c15000000") end) then require("script/c15000000") end
local m=15005064
local cm=_G["c"..m]
......
if not require and dofile then
function require(str)
require_list=require_list or {}
if not require_list[str] then
if string.find(str,"%.") then
require_list[str]=dofile(str)
else
require_list[str]=dofile(str..".lua")
end
end
return require_list[str]
end
end
if not pcall(function() require("expansions/script/c15000000") end) then require("script/c15000000") end
local m=15005067
local cm=_G["c"..m]
......
......@@ -3,6 +3,7 @@ local m=40009023
local cm=_G["c"..m]
cm.named_with_MobileAerialTeam=1
function cm.MobileAerialTeam(c)
if c:IsSetCard(0xf13) then return true end
local m=_G["c"..c:GetCode()]
return m and m.named_with_MobileAerialTeam
end
......
......@@ -86,6 +86,7 @@ function c40009037.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 and tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.BreakEffect()
Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1)
Duel.Equip(tp,c,tc)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -716,8 +716,11 @@ end
function cm.imuval(e,c)
return e:GetHandler():GetFlagEffectLabel(m+50) or 0
end
function cm.imufilter(c,e)
return not c:IsImmuneToEffect(e) and c:IsSummonLocation(LOCATION_SZONE)
end
function cm.imuct(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.NOT(Card.IsImmuneToEffect),tp,LOCATION_MZONE,0,nil,e:GetLabelObject())
local g=Duel.GetMatchingGroup(cm.imufilter,tp,LOCATION_MZONE,0,nil,e:GetLabelObject())
local re=e:GetLabelObject():GetLabelObject()
for tc in aux.Next(g) do
local pe={Duel.IsPlayerAffectedByEffect(tp,m)}
......@@ -740,7 +743,7 @@ function cm.imuct(e,tp,eg,ep,ev,re,r,rp)
end
function cm.efilter(e,te,c)
local tp=e:GetHandlerPlayer()
if not te:IsActivated() then return false end
if te:GetOwnerPlayer()==tp or not te:IsActivated() or te:GetActivateLocation()&LOCATION_ONFIELD==0 then return false end
if Akanekosan_Say_No then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -751,7 +754,6 @@ function cm.efilter(e,te,c)
return false
end
c:ResetEffect(53766006,RESET_CODE)
--if te:GetHandlerPlayer()==tp or not te:IsActivated() or te:GetActivateLocation()&LOCATION_ONFIELD==0 then return false end
local re=e:GetLabelObject()
local ct=0
local pe={Duel.IsPlayerAffectedByEffect(tp,m)}
......
This diff is collapsed.
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