Commit f3c29bd7 authored by Chen Bill's avatar Chen Bill

fix 強欲な壺の精霊

parent 5996c714
......@@ -7,6 +7,7 @@ function c4896788.initial_effect(c)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c4896788.drcon)
e2:SetTarget(c4896788.drtg)
e2:SetOperation(c4896788.drop)
c:RegisterEffect(e2)
end
......@@ -14,6 +15,9 @@ function c4896788.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsAttackPos()
and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsCode(55144522)
end
function c4896788.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
end
function c4896788.drop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsAttackPos() or not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsPlayerCanDraw(rp,1) and Duel.SelectYesNo(rp,aux.Stringid(4896788,0)) then
......
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