Commit c3f5514b authored by Nemo Ma's avatar Nemo Ma

fix

parent 2fc6602b
......@@ -93,14 +93,14 @@ function cm.tgtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,3,nil)
local atk=g:GetSum(Card.GetAttack())
local atk=g:GetSum(Card.GetAttack)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,atk)
end
function cm.tgop1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 then
local atk=g:GetSum(Card.GetAttack())
local atk=g:GetSum(Card.GetAttack)
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
Duel.Recover(tp,atk,REASON_EFFECT)
end
......
......@@ -46,7 +46,7 @@ end
function c22020300.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c22020300.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,c22020300.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
if not tc:IsCode(22020220) then
......
......@@ -6,7 +6,7 @@ function c22020530.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1ff1))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x2ff1))
c:RegisterEffect(e1)
--decrease tribute
local e2=Effect.CreateEffect(c)
......@@ -14,7 +14,7 @@ function c22020530.initial_effect(c)
e2:SetCode(EFFECT_DECREASE_TRIBUTE)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_HAND,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1ff1))
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x2ff1))
e2:SetValue(0x1)
c:RegisterEffect(e2)
--to hand
......
......@@ -5,7 +5,6 @@ function c60000104.initial_effect(c)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c60000104.accon)
e1:SetTarget(c60000104.actg)
e1:SetOperation(c60000104.acop)
c:RegisterEffect(e1)
......@@ -21,21 +20,8 @@ function c60000104.initial_effect(c)
c:RegisterEffect(e3)
end
function c60000104.ahcon(e)
local tp=e:GetHandlerPlayer()
return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler())
end
function c60000104.cfilter(c)
return true
end
function c60000104.accon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c60000104.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c60000104.actg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
if e:GetHandler():IsStatus(STATUS_ACT_FROM_HAND) and Duel.GetTurnPlayer()~=tp then
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,LOCATION_ONFIELD)
end
function c60000104.acop(e,tp,eg,ep,ev,re,r,rp)
......
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