Commit 1cfd07a0 authored by salix5's avatar salix5

Merge pull request #1180 from nekrozar/patch-1

fix Traptrix Nepenthes
parents bac33b56 48b5745b
...@@ -13,7 +13,7 @@ function c28201945.initial_effect(c) ...@@ -13,7 +13,7 @@ function c28201945.initial_effect(c)
e2:SetDescription(aux.Stringid(28201945,0)) e2:SetDescription(aux.Stringid(28201945,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAIN_SOLVING)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,28201945) e2:SetCountLimit(1,28201945)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
...@@ -28,7 +28,7 @@ function c28201945.efilter(e,te) ...@@ -28,7 +28,7 @@ function c28201945.efilter(e,te)
end end
function c28201945.spcon(e,tp,eg,ep,ev,re,r,rp) function c28201945.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=re:GetHandler() local c=re:GetHandler()
return rp==tp and c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89))
end end
function c28201945.filter(c,e,tp,ft) function c28201945.filter(c,e,tp,ft)
return c:IsSetCard(0x108a) and c:GetCode()~=28201945 and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))) return c:IsSetCard(0x108a) and c:GetCode()~=28201945 and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
......
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