Commit 43657c61 authored by wind2009's avatar wind2009

Merge remote-tracking branch 'upstream/TW01' into master

parents 428c5078 bd0b2676
...@@ -49,7 +49,7 @@ function s.filter(c,tp) ...@@ -49,7 +49,7 @@ function s.filter(c,tp)
return c:IsControler(tp) return c:IsControler(tp)
end end
function s.costfilter(c) function s.costfilter(c)
return c:IsSetCard(0xb5) and c:IsType(TYPE_MONSTER) and not c:IsPublic() return c:IsSetCard(0xb5) and c:IsType(TYPE_MONSTER) and not c:IsPublic() and Duel.IsExistingMatchingCard(aux.NOT(Card.IsRace),c:GetControler(),LOCATION_DECK,0,1,nil,c:GetRace())
end end
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end
...@@ -97,4 +97,4 @@ function s.pop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,4 +97,4 @@ function s.pop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)
end end
end end
\ No newline at end of file
...@@ -85,4 +85,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,4 +85,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -75,4 +75,4 @@ function s.actcon(e) ...@@ -75,4 +75,4 @@ function s.actcon(e)
end end
function s.aclimit(e,re,tp) function s.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_GRAVE and re:IsActiveType(TYPE_MONSTER) return re:GetActivateLocation()==LOCATION_GRAVE and re:IsActiveType(TYPE_MONSTER)
end end
\ No newline at end of file
...@@ -113,4 +113,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,4 +113,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SynchroSummon(tp,g:GetFirst(),nil) Duel.SynchroSummon(tp,g:GetFirst(),nil)
end end
end end
end end
\ No newline at end of file
...@@ -95,4 +95,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,4 +95,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(sg2) Duel.HintSelection(sg2)
Duel.Destroy(sg2,REASON_EFFECT) Duel.Destroy(sg2,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -64,4 +64,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,4 +64,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) e1:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1,true) tc:RegisterEffect(e1,true)
end end
\ No newline at end of file
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