Commit 67f0884f authored by nekrozar's avatar nekrozar

fix

parent edadf34e
......@@ -25,7 +25,7 @@ function c31826057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c31826057.filter(c)
return c:IsFaceup() and c:IsSetCard(0x1066) and c:IsLevelAbove(1)
return c:IsFaceup() and c:IsSetCard(0x1066)
end
function c31826057.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c31826057.filter(chkc) end
......
......@@ -47,8 +47,8 @@ function c75304793.filter(c)
end
function c75304793.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.GetMatchingGroupCount(c75304793.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local b1=e:GetHandler():IsCanRemoveCounter(tp,0x35,5,REASON_COST)
local b2=e:GetHandler():IsCanRemoveCounter(tp,0x35,7,REASON_COST)
local b1=Duel.IsCanRemoveCounter(tp,1,0,0x35,5,REASON_COST)
local b2=Duel.IsCanRemoveCounter(tp,1,0,0x35,7,REASON_COST)
and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil)
if chk==0 then return ct>0 and (b1 or b2) end
local op=0
......@@ -62,12 +62,12 @@ function c75304793.target(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(op)
if op==0 then
e:SetCategory(CATEGORY_DAMAGE)
e:GetHandler():RemoveCounter(tp,0x35,5,REASON_COST)
Duel.RemoveCounter(tp,1,0,0x35,5,REASON_COST)
Duel.SetTargetPlayer(1-tp)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,ct*300)
else
e:SetCategory(CATEGORY_REMOVE)
e:GetHandler():RemoveCounter(tp,0x35,7,REASON_COST)
Duel.RemoveCounter(tp,1,0,0x35,7,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,LOCATION_ONFIELD+LOCATION_GRAVE)
end
end
......
......@@ -25,7 +25,7 @@ function c94331452.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c94331452.filter(c)
return c:IsFaceup() and c:IsSetCard(0x1066) and c:IsLevelAbove(1)
return c:IsFaceup() and c:IsSetCard(0x1066)
end
function c94331452.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c94331452.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