Commit 01f6e9c1 authored by mercury233's avatar mercury233

fix 魔轟神獣チャワ and 魔轟神獣ノズチ

parent 2f943b70
...@@ -21,16 +21,16 @@ function c29905795.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,16 +21,16 @@ function c29905795.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c29905795.op(e,tp,eg,ep,ev,re,r,rp) function c29905795.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c29905795.filter,tp,LOCATION_HAND,0,nil)
if g:GetCount()==0 then return end
if g:GetCount()==1 then
Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local sg=g:Select(tp,1,1,e:GetHandler())
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD)
end
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end local ec=aux.ExceptThisCard(e)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) local g=Duel.GetMatchingGroup(c29905795.filter,tp,LOCATION_HAND,0,ec)
if #g==0 and ec then
g:AddCard(ec)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local tc=g:Select(tp,1,1,nil):GetFirst()
if tc and Duel.SendtoGrave(tc,REASON_EFFECT+REASON_DISCARD)>0 and tc:IsLocation(LOCATION_GRAVE)
and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end end
...@@ -31,18 +31,18 @@ function c55277252.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,18 +31,18 @@ function c55277252.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c55277252.op(e,tp,eg,ep,ev,re,r,rp) function c55277252.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c55277252.filter,tp,LOCATION_HAND,0,nil)
if g:GetCount()==0 then return end
if g:GetCount()==1 then
Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local sg=g:Select(tp,1,1,e:GetHandler())
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD)
end
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end local ec=aux.ExceptThisCard(e)
Duel.SpecialSummon(c,SUMMON_VALUE_SELF,tp,tp,false,false,POS_FACEUP) local g=Duel.GetMatchingGroup(c55277252.filter,tp,LOCATION_HAND,0,ec)
if #g==0 and ec then
g:AddCard(ec)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local tc=g:Select(tp,1,1,nil):GetFirst()
if tc and Duel.SendtoGrave(tc,REASON_EFFECT+REASON_DISCARD)>0 and tc:IsLocation(LOCATION_GRAVE)
and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,SUMMON_VALUE_SELF,tp,tp,false,false,POS_FACEUP)
end
end end
function c55277252.con2(e,tp,eg,ep,ev,re,r,rp) function c55277252.con2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+SUMMON_VALUE_SELF return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+SUMMON_VALUE_SELF
......
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