Commit e381a4da authored by POLYMER's avatar POLYMER

fix

parent 49b3f55c
......@@ -1914,7 +1914,7 @@
130006131 0
130918820 0
131584217 0
7451199 0
7451999 0
98941053 0
#Semi-Wild 1003
31409200 0
......
......@@ -100,8 +100,8 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
end
if op1==3 or op2==3 then
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
if re:GetHandler():IsAbleToRemove() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
end
end
end
......@@ -129,7 +129,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
if op1==3 or op2==3 then
if res==1 then Duel.BreakEffect() end
if Duel.NegateEffect(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end
res=1
end
......
......@@ -25,7 +25,7 @@ function c51928001.initial_effect(c)
Duel.AddCustomActivityCounter(51928001,ACTIVITY_SPSUMMON,c51928001.counterfilter)
end
function c51928001.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSummonLocation(LOCATION_EXTRA) or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER))
end
---------------------------------
function c51928001.filter(c)
......@@ -50,9 +50,6 @@ end
function c51928001.splimit(e,c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
end
---------------------------------------
function c51928001.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_TUNER)
......
......@@ -26,7 +26,7 @@ function c51928002.initial_effect(c)
Duel.AddCustomActivityCounter(51928002,ACTIVITY_SPSUMMON,c51928002.counterfilter)
end
function c51928002.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSummonLocation(LOCATION_EXTRA) or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER))
end
--------------------------------------
......
......@@ -25,7 +25,7 @@ function c51928003.initial_effect(c)
Duel.AddCustomActivityCounter(51928003,ACTIVITY_SPSUMMON,c51928003.counterfilter)
end
function c51928003.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSummonLocation(LOCATION_EXTRA) or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER))
end
......
......@@ -23,7 +23,7 @@ function c51928004.initial_effect(c)
Duel.AddCustomActivityCounter(51928004,ACTIVITY_SPSUMMON,c51928004.counterfilter)
end
function c51928004.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSummonLocation(LOCATION_EXTRA) or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER))
end
--------------------------------
function c51928004.filter(c)
......
......@@ -23,7 +23,7 @@ function c51928005.initial_effect(c)
Duel.AddCustomActivityCounter(51928005,ACTIVITY_SPSUMMON,c51928005.counterfilter)
end
function c51928005.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSummonLocation(LOCATION_EXTRA) or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER))
end
--------------------------------
function c51928005.filter(c)
......
......@@ -26,12 +26,10 @@ function c51928006.initial_effect(c)
Duel.AddCustomActivityCounter(51928006,ACTIVITY_SPSUMMON,c51928006.counterfilter)
end
function c51928006.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSummonLocation(LOCATION_EXTRA) or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER))
end
function c51928006.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
end
function c51928006.filter(c,e,tp)
return c:IsSetCard(0x9256) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -27,12 +27,10 @@ function c51928007.initial_effect(c)
Duel.AddCustomActivityCounter(51928007,ACTIVITY_SPSUMMON,c51928007.counterfilter)
end
function c51928007.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSummonLocation(LOCATION_EXTRA) or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER))
end
function c51928007.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
end
function c51928007.filter(c,e,tp)
return c:IsSetCard(0x9256) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -30,12 +30,10 @@ function c51928010.initial_effect(c)
Duel.AddCustomActivityCounter(51928010,ACTIVITY_SPSUMMON,c51928010.counterfilter)
end
function c51928010.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSummonLocation(LOCATION_EXTRA) or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER))
end
-------------
function c51928010.counterfilter(c)
return not (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_THUNDER)) and c:IsLocation(LOCATION_EXTRA)
end
function c51928010.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
......
......@@ -37,7 +37,7 @@ end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local tg=eg:Filter(Card.IsControler,nil,tp)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and tg:GetCount()>0 end
and e:GetHandler():IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true,POS_FACEDOWN_DEFENSE) and tg:GetCount()>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,tg,1,tp,LOCATION_SZONE)
end
......@@ -46,7 +46,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
local tg=eg:Filter(Card.IsControler,nil,tp)
if tg:GetCount()>0 then
if Duel.SendtoHand(tg,nil,REASON_EFFECT)>0 and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
Duel.SpecialSummon(c,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEDOWN_DEFENSE)
end
end
end
......
......@@ -53,7 +53,7 @@ function c98941053.initial_effect(c)
PK_hack_fusion_select=Duel.SelectFusionMaterial
function Duel.SelectFusionMaterial(tp,card,mg,gc_nil,chkf)
if card:GetOriginalCode()==98941053 and Duel.GetFlagEffect(0,98941053)~=0 and Duel.GetFlagEffect(0,98941054)~=0 then
exg=Duel.GetMatchingGroup(c98941053.kfilter0,int_chkf,LOCATION_DECK,0,nil,card)
exg=Duel.GetMatchingGroup(c98941053.kfilter0,int_chkf,LOCATION_DECK,LOCATION_DECK,nil,card)
if exg:GetCount()>0 then
mg:Merge(exg)
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