Commit 0adf1b63 authored by wind2009's avatar wind2009 Committed by GitHub

Fix EFFECT_CANNOT_DISCARD_HAND (#2805)

* Fix EFFECT_CANNOT_DISCARD_HAND

* Fix
parent 19da76d6
......@@ -8,6 +8,10 @@ function c425934.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,1)
e1:SetCode(EFFECT_CANNOT_DISCARD_HAND)
e1:SetTarget(c425934.target)
e1:SetValue(1)
c:RegisterEffect(e1)
end
function c425934.target(e,dc,re,r)
return r&REASON_COST==REASON_COST
end
......@@ -47,6 +47,7 @@ function c49655592.initial_effect(c)
e5:SetTargetRange(0,1)
e5:SetCode(EFFECT_CANNOT_DISCARD_HAND)
e5:SetCondition(c49655592.excon)
e5:SetTarget(c49655592.extarget)
e5:SetValue(1)
c:RegisterEffect(e5)
local e6=Effect.CreateEffect(c)
......@@ -95,3 +96,6 @@ end
function c49655592.excon(e)
return e:GetHandler():IsLevelAbove(7)
end
function c49655592.extarget(e,dc,re,r)
return r&REASON_COST==REASON_COST
end
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