Skip to content

Commit bda167d

Browse files
committed
"Azamina" fix
- fixed a bug where it could use monsters that cannot be Fusion materials with its alternative summon procedure - fixed a bug where it could not use a monster that had Fusion Tag's effect applied to it (using St. Azamina)
1 parent 5950eb5 commit bda167d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pre-release/c101208035.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ end
5555
s.miracle_synchro_fusion=true
5656
s.material_setcode={SET_AZAMINA}
5757
s.listed_names={65033975,85065943} --"Queen of the Azamina", "St. Azamina"
58-
function s.selfspcostfilter(c,tp)
59-
return (c:IsCode(85065943) or c:IsControler(1-tp)) and c:IsReleasable() and (c:IsControler(tp) or c:IsFaceup())
58+
function s.selfspcostfilter(c,tp,fc)
59+
return ((c:IsCode(85065943) or c:IsSummonCode(fc,MATERIAL_FUSION,tp,85065943)) or c:IsControler(1-tp)) and c:IsReleasable()
60+
and c:IsCanBeFusionMaterial(fc,MATERIAL_FUSION) and (c:IsControler(tp) or c:IsFaceup())
6061
end
6162
function s.rescon(sg,e,tp,mg)
6263
return Duel.GetLocationCountFromEx(tp,tp,sg,e:GetHandler())>0
@@ -65,11 +66,11 @@ end
6566
function s.selfspcon(e,c)
6667
if not c then return true end
6768
local tp=c:GetControler()
68-
local mg=Duel.GetMatchingGroup(s.selfspcostfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
69+
local mg=Duel.GetMatchingGroup(s.selfspcostfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp,e:GetHandler())
6970
return #mg>=2 and aux.SelectUnselectGroup(mg,e,tp,2,2,s.rescon,0)
7071
end
7172
function s.selfsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
72-
local mg=Duel.GetMatchingGroup(s.selfspcostfilter,tp,LOCATION_ONFIELD,LOCATION_MZONE,nil,tp)
73+
local mg=Duel.GetMatchingGroup(s.selfspcostfilter,tp,LOCATION_ONFIELD,LOCATION_MZONE,nil,tp,e:GetHandler())
7374
local g=aux.SelectUnselectGroup(mg,e,tp,2,2,s.rescon,1,tp,HINTMSG_RELEASE,nil,nil,true)
7475
if #g>0 then
7576
g:KeepAlive()

0 commit comments

Comments
 (0)