Commit fe151ef1 authored by TanakaKotoha's avatar TanakaKotoha

mopempoe

parent 89092e62
...@@ -103,7 +103,7 @@ function cm.rhcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -103,7 +103,7 @@ function cm.rhcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function cm.rhfilter(c) function cm.rhfilter(c)
return c:IsType(TYPE_TUNER) and c:IsAbleToHand() return c:IsType(TYPE_TUNER) and c:IsAbleToHand() and c:IsLevel(3)
end end
function cm.rhtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.rhtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.rhfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.rhfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -49,6 +49,7 @@ function c81012063.initial_effect(c) ...@@ -49,6 +49,7 @@ function c81012063.initial_effect(c)
e6:SetHintTiming(0,TIMING_DRAW_PHASE) e6:SetHintTiming(0,TIMING_DRAW_PHASE)
e6:SetCountLimit(1,81012963) e6:SetCountLimit(1,81012963)
e6:SetCost(c81012063.actcost) e6:SetCost(c81012063.actcost)
e6:SetOperation(c81012063.actop) e6:SetOperation(c81012063.actop)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
...@@ -90,14 +91,15 @@ function c81012063.actcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -90,14 +91,15 @@ function c81012063.actcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c81012063.actop(e,tp,eg,ep,ev,re,r,rp) function c81012063.actop(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(e:GetHandler()) local c=e:GetHandler()
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EFFECT_CANNOT_ACTIVATE) e2:SetCode(EFFECT_CANNOT_ACTIVATE)
e2:SetTargetRange(0,1) e2:SetTargetRange(0,1)
e2:SetValue(c81012063.aclimit) e2:SetValue(c81012063.aclimit)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e2,tp)
end end
function c81012063.aclimit(e,re,tp) function c81012063.aclimit(e,re,tp)
local loc=re:GetActivateLocation() local loc=re:GetActivateLocation()
......
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