Commit e385bada authored by salix5's avatar salix5

update reason 0x40008

parent 9c5424d5
...@@ -50,7 +50,7 @@ function c22829942.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c22829942.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c22829942.thfilter2(c,id) function c22829942.thfilter2(c,id)
return bit.band(c:GetReason(),0x40008)==0x40008 and c:IsType(TYPE_MONSTER) and c:GetTurnID()==id and c:IsAbleToHand() return c:GetReason()&(REASON_FUSION+REASON_MATERIAL)==(REASON_FUSION+REASON_MATERIAL) and c:IsType(TYPE_MONSTER) and c:GetTurnID()==id and c:IsAbleToHand()
end end
function c22829942.thtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22829942.thtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tid=Duel.GetTurnCount() local tid=Duel.GetTurnCount()
......
...@@ -20,7 +20,7 @@ function c29455728.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -20,7 +20,7 @@ function c29455728.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c29455728.mgfilter(c,e,tp,fusc,mg) function c29455728.mgfilter(c,e,tp,fusc,mg)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x40008)==0x40008 and c:GetReasonCard()==fusc and c:GetReason()&(REASON_FUSION+REASON_MATERIAL)==(REASON_FUSION+REASON_MATERIAL) and c:GetReasonCard()==fusc
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true) and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true)
end end
......
...@@ -107,7 +107,7 @@ function c76647978.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,7 +107,7 @@ function c76647978.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function c76647978.mgfilter(c,e,tp,fusc,mg) function c76647978.mgfilter(c,e,tp,fusc,mg)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x40008)==0x40008 and c:GetReasonCard()==fusc and c:GetReason()&(REASON_FUSION+REASON_MATERIAL)==(REASON_FUSION+REASON_MATERIAL) and c:GetReasonCard()==fusc
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true) and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true)
end end
......
...@@ -113,7 +113,7 @@ function c9113513.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,7 +113,7 @@ function c9113513.descon(e,tp,eg,ep,ev,re,r,rp)
end end
function c9113513.mgfilter(c,e,tp,fusc,mg) function c9113513.mgfilter(c,e,tp,fusc,mg)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x40008)==0x40008 and c:GetReasonCard()==fusc and c:GetReason()&(REASON_FUSION+REASON_MATERIAL)==(REASON_FUSION+REASON_MATERIAL) and c:GetReasonCard()==fusc
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true) and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true)
end end
......
...@@ -22,7 +22,7 @@ function c95286165.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -22,7 +22,7 @@ function c95286165.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c95286165.mgfilter(c,e,tp,fusc,mg) function c95286165.mgfilter(c,e,tp,fusc,mg)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x40008)==0x40008 and c:GetReasonCard()==fusc and c:GetReason()&(REASON_FUSION+REASON_MATERIAL)==(REASON_FUSION+REASON_MATERIAL) and c:GetReasonCard()==fusc
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true) and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true)
end 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