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)
return c:IsControler(tp)
end
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
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
......@@ -97,4 +97,4 @@ function s.pop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)
end
end
\ No newline at end of file
end
......@@ -85,4 +85,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -75,4 +75,4 @@ function s.actcon(e)
end
function s.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_GRAVE and re:IsActiveType(TYPE_MONSTER)
end
\ No newline at end of file
end
......@@ -113,4 +113,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SynchroSummon(tp,g:GetFirst(),nil)
end
end
end
\ No newline at end of file
end
......@@ -95,4 +95,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(sg2)
Duel.Destroy(sg2,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -64,4 +64,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1,true)
end
\ No newline at end of file
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