Commit db3e17aa authored by VanillaSalt's avatar VanillaSalt

Merge pull request #1205 from nekrozar/patch-1

fix Card of Sanctity
parents 0bca7421 b9ee7a75
...@@ -13,7 +13,7 @@ function c42664989.initial_effect(c) ...@@ -13,7 +13,7 @@ function c42664989.initial_effect(c)
end end
function c42664989.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c42664989.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND,0,1,e:GetHandler()) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND,0,1,e:GetHandler())
and Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_ONFIELD,0,1,e:GetHandler())end or Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end
local g=Duel.GetMatchingGroup(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD,0,e:GetHandler()) local g=Duel.GetMatchingGroup(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD,0,e:GetHandler())
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
...@@ -27,7 +27,7 @@ end ...@@ -27,7 +27,7 @@ end
function c42664989.operation(e,tp,eg,ep,ev,re,r,rp) function c42664989.operation(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local ht=Duel.GetFieldGroupCount(p,LOCATION_HAND,0) local ht=Duel.GetFieldGroupCount(p,LOCATION_HAND,0)
if(ht<2) then if ht<2 then
Duel.Draw(p,2-ht,REASON_EFFECT) Duel.Draw(p,2-ht,REASON_EFFECT)
end end
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