Commit 3713f616 authored by Nemo Ma's avatar Nemo Ma

fix

parent d1bc64c3
...@@ -51,7 +51,7 @@ end ...@@ -51,7 +51,7 @@ end
function cm.im(e,tp,eg,ep,ev,re,r,rp) function cm.im(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
if not rc then return end if not rc then return end
local BMe=tama.tamas_getTargetTable(rc,"bomb") local BMe=tama.getTargetTable(rc,"bomb")
if BMe and re==BMe then if BMe and re==BMe then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -20,7 +20,7 @@ function cm.initial_effect(c) ...@@ -20,7 +20,7 @@ function cm.initial_effect(c)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and cm.tf1(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and cm.tf1(chkc) end
if chk==0 then return Duel.IsExistingTarget(cm.tf1,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(cm.tf1,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local g=Duel.SelectTarget(tp,cm.tf1,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,cm.tf1,tp,0,LOCATION_MZONE,1,1,nil)
end) end)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -58,6 +58,7 @@ end) ...@@ -58,6 +58,7 @@ end)
end end
end) end)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end
--e3 --e3
function cm.tf3(c,mc) function cm.tf3(c,mc)
return c:IsSetCard(0x5880) and mc:IsType(TYPE_XYZ) and c:IsCanOverlay() return c:IsSetCard(0x5880) and mc:IsType(TYPE_XYZ) and c:IsCanOverlay()
......
...@@ -64,6 +64,7 @@ function cm.initial_effect(c) ...@@ -64,6 +64,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCountLimit(1)
e1:SetValue(1000) e1:SetValue(1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -28,7 +28,7 @@ function cm.initial_effect(c) ...@@ -28,7 +28,7 @@ function cm.initial_effect(c)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end) end)
e3:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) e3:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.t3,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cm.t3,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,0)
end) end)
e3:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e3:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -54,7 +54,8 @@ function c67200082.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,8 @@ function c67200082.operation(e,tp,eg,ep,ev,re,r,rp)
end end
--spsummon --spsummon
function c67200082.spcon(e,tp,eg,ep,ev,re,r,rp) function c67200082.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_MZONE)
end end
function c67200082.spfilter(c,e,tp) function c67200082.spfilter(c,e,tp)
return c:IsSetCard(0x673) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x673) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -125,7 +125,7 @@ end ...@@ -125,7 +125,7 @@ end
function c82550000.negtg(e,tp,eg,ep,ev,re,r,rp,chk) function c82550000.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.nbcon(tp,re) end if chk==0 then return aux.nbcon(tp,re) end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsRelateToEffect(re) then if re:GetHandler():IsRelateToEffect(re) and rp==1-tp then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
end end
end end
......
...@@ -22,7 +22,7 @@ function c82557934.initial_effect(c) ...@@ -22,7 +22,7 @@ function c82557934.initial_effect(c)
--tohand --tohand
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(82557934,1)) e3:SetDescription(aux.Stringid(82557934,1))
e3:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND) e3:SetCategory(CATEGORY_TOHAND)
e3:SetCountLimit(1,82557934) e3:SetCountLimit(1,82557934)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
......
...@@ -28,7 +28,7 @@ function c82557946.initial_effect(c) ...@@ -28,7 +28,7 @@ function c82557946.initial_effect(c)
e3:SetCategory(CATEGORY_SUMMON) e3:SetCategory(CATEGORY_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,82557946) e3:SetCountLimit(1,82558046)
e3:SetTarget(c82557946.sumtg) e3:SetTarget(c82557946.sumtg)
e3:SetOperation(c82557946.sumop) e3:SetOperation(c82557946.sumop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -38,7 +38,7 @@ function c9910576.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c9910576.operation(e,tp,eg,ep,ev,re,r,rp)
local loc=LOCATION_HAND local loc=LOCATION_HAND
local chain=Duel.GetCurrentChain() local chain=Duel.GetCurrentChain()
if chain>1 then if chain>1 then
local te=Duel.GetChainInfo(chain,CHAININFO_TRIGGERING_EFFECT) local te=Duel.GetChainInfo(chain-1,CHAININFO_TRIGGERING_EFFECT)
if te:GetHandler()==e:GetHandler() then loc=LOCATION_HAND+LOCATION_DECK end if te:GetHandler()==e:GetHandler() then loc=LOCATION_HAND+LOCATION_DECK end
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
......
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