Commit 07b1e6bc authored by nekrozar's avatar nekrozar

fix Rainbow Dragon

https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=2&cid=7171
自分のフィールド・墓地に「宝玉獣」カードが7種類存在する場合のみ特殊召喚できる。
parent bf94536c
...@@ -54,8 +54,7 @@ function c79856792.spcon(e,c) ...@@ -54,8 +54,7 @@ function c79856792.spcon(e,c)
if c==nil then return true end if c==nil then return true end
if Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)<=0 then return false end if Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)<=0 then return false end
local g=Duel.GetMatchingGroup(c79856792.spfilter,c:GetControler(),LOCATION_ONFIELD+LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c79856792.spfilter,c:GetControler(),LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)
local ct=g:GetClassCount(Card.GetCode) return g:GetClassCount(Card.GetCode)==7
return ct>6
end end
function c79856792.spop(e,tp,eg,ep,ev,re,r,rp) function c79856792.spop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(79856792,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD-RESET_TURN_SET+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(79856792,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD-RESET_TURN_SET+RESET_PHASE+PHASE_END,0,1)
......
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