Commit 44cadd99 authored by mallu11's avatar mallu11 Committed by mercury233

fix Equip Spell Card (#1227)

parent a109847b
...@@ -51,7 +51,7 @@ function c33453260.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c33453260.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c33453260.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(c33453260.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function c33453260.filter(c) function c33453260.filter(c)
return c:IsFaceup() and c:IsControlerCanBeChanged() return c:IsFaceup()
end end
function c33453260.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33453260.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c33453260.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c33453260.filter(chkc) end
......
...@@ -44,7 +44,7 @@ function c45247637.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,7 +44,7 @@ function c45247637.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c45247637.filter(c) function c45247637.filter(c)
return c:IsFaceup() and c:IsControlerCanBeChanged() return c:IsFaceup()
end end
function c45247637.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45247637.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_MZONE and chkc:GetControler()~=tp and c45247637.filter(chkc) end if chkc then return chkc:GetLocation()==LOCATION_MZONE and chkc:GetControler()~=tp and c45247637.filter(chkc) 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