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

fix

parent d1bc64c3
......@@ -51,7 +51,7 @@ end
function cm.im(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
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
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -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 chk==0 then return Duel.IsExistingTarget(cm.tf1,tp,0,LOCATION_MZONE,1,nil) end
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)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -58,6 +58,7 @@ end)
end
end)
c:RegisterEffect(e1)
end
--e3
function cm.tf3(c,mc)
return c:IsSetCard(0x5880) and mc:IsType(TYPE_XYZ) and c:IsCanOverlay()
......
......@@ -64,6 +64,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCountLimit(1)
e1:SetValue(1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
......
......@@ -28,7 +28,7 @@ function cm.initial_effect(c)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end)
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)
end)
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)
end
--spsummon
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
function c67200082.spfilter(c,e,tp)
return c:IsSetCard(0x673) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -125,7 +125,7 @@ end
function c82550000.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.nbcon(tp,re) end
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)
end
end
......
......@@ -22,7 +22,7 @@ function c82557934.initial_effect(c)
--tohand
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(82557934,1))
e3:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e3:SetCategory(CATEGORY_TOHAND)
e3:SetCountLimit(1,82557934)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
......
......@@ -28,7 +28,7 @@ function c82557946.initial_effect(c)
e3:SetCategory(CATEGORY_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,82557946)
e3:SetCountLimit(1,82558046)
e3:SetTarget(c82557946.sumtg)
e3:SetOperation(c82557946.sumop)
c:RegisterEffect(e3)
......
......@@ -38,7 +38,7 @@ function c9910576.operation(e,tp,eg,ep,ev,re,r,rp)
local loc=LOCATION_HAND
local chain=Duel.GetCurrentChain()
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
end
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