Commit 7a3efdca authored by VanillaSalt's avatar VanillaSalt

fix

parent ce047918
...@@ -6,6 +6,7 @@ function c11264180.initial_effect(c) ...@@ -6,6 +6,7 @@ function c11264180.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c11264180.condition) e1:SetCondition(c11264180.condition)
e1:SetTarget(c11264180.target) e1:SetTarget(c11264180.target)
e1:SetOperation(c11264180.activate) e1:SetOperation(c11264180.activate)
......
...@@ -25,7 +25,7 @@ function c18235309.initial_effect(c) ...@@ -25,7 +25,7 @@ function c18235309.initial_effect(c)
end end
function c18235309.filter(c) function c18235309.filter(c)
local mi,ma=c:GetTributeRequirement() local mi,ma=c:GetTributeRequirement()
return c:IsSummonable(true,nil) and mi>0 return (c:IsSummonable(true,nil) or c:IsMSetable(true,nil)) and mi>0
end end
function c18235309.cost1(e,tp,eg,ep,ev,re,r,rp,chk) function c18235309.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
...@@ -51,7 +51,13 @@ function c18235309.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,13 @@ function c18235309.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c18235309.filter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c18235309.filter,tp,LOCATION_HAND,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.Summon(tp,tc,true,nil) local s1=tc:IsSummonable(true,nil)
local s2=tc:IsMSetable(true,nil)
if (s1 and s2 and Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEDOWN_DEFENCE)==POS_FACEUP_ATTACK) or not s2 then
Duel.Summon(tp,tc,true,nil)
else
Duel.MSet(tp,tc,true,nil)
end
end end
end end
function c18235309.condition2(e,tp,eg,ep,ev,re,r,rp) function c18235309.condition2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -57,7 +57,7 @@ function c66165755.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c66165755.spop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
function c66165755.rmop(e,tp,eg,ep,ev,re,r,rp) function c66165755.rmcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c66165755.rmop(e,tp,eg,ep,ev,re,r,rp) function c66165755.rmop(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