Commit 88c09bfb authored by nekrozar's avatar nekrozar Committed by mercury233

fix (#937)

parent 06b6d943
...@@ -15,7 +15,7 @@ function c16946849.initial_effect(c) ...@@ -15,7 +15,7 @@ function c16946849.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c16946849.tokencon(e,tp,eg,ep,ev,re,r,rp) function c16946849.tokencon(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_COUNTER) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_COUNTER) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,16946850,0,0x4011,300,300,1,RACE_FAIRY,ATTRIBUTE_LIGHT) and Duel.IsPlayerCanSpecialSummonMonster(tp,16946850,0,0x4011,300,300,1,RACE_FAIRY,ATTRIBUTE_LIGHT)
end end
function c16946849.tokenop(e,tp,eg,ep,ev,re,r,rp) function c16946849.tokenop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -44,7 +44,7 @@ function c20951752.chop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c20951752.chop1(e,tp,eg,ep,ev,re,r,rp)
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
end end
function c20951752.chop2(e,tp,eg,ep,ev,re,r,rp) function c20951752.chop2(e,tp,eg,ep,ev,re,r,rp)
if rp~=tp or not re:IsActiveType(TYPE_COUNTER) then return end if rp~=tp or not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_COUNTER) then return end
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
end end
function c20951752.sumcon(e,tp,eg,ep,ev,re,r,rp) function c20951752.sumcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -9,7 +9,7 @@ function c32296881.initial_effect(c) ...@@ -9,7 +9,7 @@ function c32296881.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c32296881.drop(e,tp,eg,ep,ev,re,r,rp) function c32296881.drop(e,tp,eg,ep,ev,re,r,rp)
if not re:GetHandler():IsType(TYPE_COUNTER) then return end if not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_COUNTER) then return end
Duel.Hint(HINT_CARD,0,32296881) Duel.Hint(HINT_CARD,0,32296881)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
......
...@@ -10,7 +10,7 @@ function c49905576.initial_effect(c) ...@@ -10,7 +10,7 @@ function c49905576.initial_effect(c)
end end
function c49905576.drop(e,tp,eg,ep,ev,re,r,rp) function c49905576.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not re:GetHandler():IsType(TYPE_COUNTER) or not c:IsLocation(LOCATION_MZONE) or not c:IsFaceup() then return end if not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_COUNTER) or not c:IsLocation(LOCATION_MZONE) or not c:IsFaceup() then return end
Duel.Recover(tp,1000,REASON_EFFECT) Duel.Recover(tp,1000,REASON_EFFECT)
if not Duel.IsEnvironment(56433456) then return end if not Duel.IsEnvironment(56433456) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
...@@ -44,7 +44,7 @@ function c65282484.chop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c65282484.chop1(e,tp,eg,ep,ev,re,r,rp)
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
end end
function c65282484.chop2(e,tp,eg,ep,ev,re,r,rp) function c65282484.chop2(e,tp,eg,ep,ev,re,r,rp)
if rp~=tp or not re:IsActiveType(TYPE_COUNTER) then return end if rp~=tp or not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_COUNTER) then return end
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
end end
function c65282484.spcon(e,tp,eg,ep,ev,re,r,rp) function c65282484.spcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -12,7 +12,7 @@ function c67468948.filter(c) ...@@ -12,7 +12,7 @@ function c67468948.filter(c)
return c:IsFaceup() and c:IsRace(RACE_FAIRY) and c:IsAbleToHand() return c:IsFaceup() and c:IsRace(RACE_FAIRY) and c:IsAbleToHand()
end end
function c67468948.drop(e,tp,eg,ep,ev,re,r,rp) function c67468948.drop(e,tp,eg,ep,ev,re,r,rp)
if not re:GetHandler():IsType(TYPE_COUNTER) then return end if not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_COUNTER) then return end
Duel.BreakEffect() Duel.BreakEffect()
local g=Duel.GetMatchingGroup(c67468948.filter,tp,LOCATION_REMOVED,0,nil) local g=Duel.GetMatchingGroup(c67468948.filter,tp,LOCATION_REMOVED,0,nil)
if g:GetCount()<2 then return end if g:GetCount()<2 then return 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