Commit f93acf45 authored by Tachibana's avatar Tachibana

emergency

parent fd8f58fc
......@@ -18,7 +18,7 @@ function c50221310.mfilter(c)
return c:IsSetCard(0xcb3)
end
function c50221310.thcfilter(c)
return c:IsType(TYPE_MONSTER+TYPE_RITUAL) and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
end
function c50221310.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50221310.thcfilter,tp,LOCATION_HAND,0,1,nil) end
......
......@@ -29,7 +29,7 @@ function c50221315.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return true
end
function c50221315.costfilter(c,e,tp)
return c:IsSetCard(0xcb3) and c:IsType(TYPE_RITUAL) and Duel.GetMZoneCount(tp,c)>0
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and Duel.GetMZoneCount(tp,c)>0
and Duel.IsExistingMatchingCard(c50221315.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp,c:GetAttribute())
end
function c50221315.spfilter(c,e,tp,attr)
......@@ -60,7 +60,7 @@ function c50221315.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function c50221315.thcfilter(c)
return c:IsType(TYPE_MONSTER+TYPE_RITUAL) and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
end
function c50221315.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50221315.thcfilter,tp,LOCATION_HAND,0,1,nil) end
......
......@@ -28,7 +28,7 @@ function c50221320.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsChainNegatable(ev) and (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE))
end
function c50221320.cfilter(c)
return c:IsSetCard(0xcb3) and c:IsType(TYPE_MONSTER) and c:IsType(TYPE_RITUAL) and not c:IsStatus(STATUS_BATTLE_DESTROYED)
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end
function c50221320.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c50221320.cfilter,1,nil) end
......@@ -48,7 +48,7 @@ function c50221320.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function c50221320.thcfilter(c)
return c:IsType(TYPE_MONSTER+TYPE_RITUAL) and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0xcb3) and c:IsAbleToGraveAsCost()
end
function c50221320.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50221320.thcfilter,tp,LOCATION_HAND,0,1,nil) 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