Commit f9930816 authored by DailyShana's avatar DailyShana

fix

parent 0d8e42a8
...@@ -25,11 +25,11 @@ end ...@@ -25,11 +25,11 @@ end
function c18486927.dectg(e,tp,eg,ep,ev,re,r,rp,chk) function c18486927.dectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CARDTYPE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CARDTYPE)
Duel.SetTargetParam(Duel.SelectOption(tp,70,71,72)) e:SetLabel(Duel.SelectOption(tp,70,71,72))
end end
function c18486927.decop(e,tp,eg,ep,ev,re,r,rp) function c18486927.decop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local opt=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) local opt=e:GetLabel()
local ct=nil local ct=nil
if opt==0 then if opt==0 then
ct=TYPE_MONSTER ct=TYPE_MONSTER
...@@ -52,8 +52,8 @@ function c18486927.decop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,8 +52,8 @@ function c18486927.decop(e,tp,eg,ep,ev,re,r,rp)
end end
function c18486927.actlimit(e,re,tp) function c18486927.actlimit(e,re,tp)
local ct=e:GetLabel() local ct=e:GetLabel()
return re:IsActiveType(ct) and not re:GetHandler():IsImmuneToEffect(e) return re:IsActiveType(ct) and (ct==TYPE_MONSTER or re:IsHasType(EFFECT_TYPE_ACTIVATE))
and (re:IsHasType(EFFECT_TYPE_ACTIVATE) or re:IsActiveType(TYPE_MONSTER)) and not re:GetHandler():IsImmuneToEffect(e)
end end
function c18486927.actcon(e) function c18486927.actcon(e)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
...@@ -75,7 +75,7 @@ end ...@@ -75,7 +75,7 @@ end
function c18486927.nameop(e,tp,eg,ep,ev,re,r,rp) function c18486927.nameop(e,tp,eg,ep,ev,re,r,rp)
local ac=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) local ac=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) and c:IsFaceup() then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......
...@@ -20,14 +20,9 @@ function c23171610.filter(c) ...@@ -20,14 +20,9 @@ function c23171610.filter(c)
end end
function c23171610.target(e,tp,eg,ep,ev,re,r,rp,chk) function c23171610.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c23171610.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c23171610.filter,tp,LOCATION_MZONE,0,1,nil) end
local g=Duel.GetMatchingGroup(c23171610.filter,tp,LOCATION_MZONE,0,nil)
Duel.SetTargetCard(g)
end
function c23171610.filter2(c,e)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e)
end end
function c23171610.activate(e,tp,eg,ep,ev,re,r,rp) function c23171610.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(c23171610.filter2,tp,LOCATION_MZONE,0,nil,e) local sg=Duel.GetMatchingGroup(c23171610.filter,tp,LOCATION_MZONE,0,nil)
local c=e:GetHandler() local c=e:GetHandler()
local fid=c:GetFieldID() local fid=c:GetFieldID()
local tc=sg:GetFirst() local tc=sg:GetFirst()
......
...@@ -31,19 +31,6 @@ function c44874522.initial_effect(c) ...@@ -31,19 +31,6 @@ function c44874522.initial_effect(c)
e4:SetOperation(c44874522.operation) e4:SetOperation(c44874522.operation)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c44874522.atkop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(0,1)
e1:SetValue(c44874522.aclimit)
e1:SetReset(RESET_PHASE+PHASE_DAMAGE)
Duel.RegisterEffect(e1,tp)
end
function c44874522.aclimit(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) or (re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e))
end
function c44874522.valcheck(e,c) function c44874522.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
local flag=0 local flag=0
...@@ -77,6 +64,19 @@ function c44874522.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,6 +64,19 @@ function c44874522.regop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
end end
function c44874522.atkop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(0,1)
e1:SetValue(c44874522.aclimit)
e1:SetReset(RESET_PHASE+PHASE_DAMAGE)
Duel.RegisterEffect(e1,tp)
end
function c44874522.aclimit(e,re,tp)
return (re:IsHasType(EFFECT_TYPE_ACTIVATE) or re:IsActiveType(TYPE_MONSTER)) and not re:GetHandler():IsImmuneToEffect(e)
end
function c44874522.condition(e,tp,eg,ep,ev,re,r,rp) function c44874522.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker()==e:GetHandler() and e:GetHandler():IsRelateToBattle() return Duel.GetAttacker()==e:GetHandler() and e:GetHandler():IsRelateToBattle()
end end
......
...@@ -64,12 +64,11 @@ function c81269231.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,12 +64,11 @@ function c81269231.regop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c81269231.rmcon(e,tp,eg,ep,ev,re,r,rp) function c81269231.rmcon(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToBattle() then return false end
local t=nil local t=nil
if ev==0 then t=Duel.GetAttackTarget() if ev==0 then t=Duel.GetAttackTarget()
else t=Duel.GetAttacker() end else t=Duel.GetAttacker() end
e:SetLabelObject(t) e:SetLabelObject(t)
return t and t:IsRelateToBattle() return t and t:IsRelateToBattle() and e:GetHandler():IsStatus(STATUS_OPPO_BATTLE)
end end
function c81269231.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c81269231.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetLabelObject():IsAbleToRemove() end if chk==0 then return e:GetLabelObject():IsAbleToRemove() end
...@@ -82,7 +81,7 @@ function c81269231.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +81,7 @@ function c81269231.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c81269231.aclimit(e,re,tp) function c81269231.aclimit(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) or (re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e)) return (re:IsHasType(EFFECT_TYPE_ACTIVATE) or re:IsActiveType(TYPE_MONSTER)) and not re:GetHandler():IsImmuneToEffect(e)
end end
function c81269231.actcon(e) function c81269231.actcon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
......
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