|
55 | 55 | s.miracle_synchro_fusion=true |
56 | 56 | s.material_setcode={SET_AZAMINA} |
57 | 57 | 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()) |
60 | 61 | end |
61 | 62 | function s.rescon(sg,e,tp,mg) |
62 | 63 | return Duel.GetLocationCountFromEx(tp,tp,sg,e:GetHandler())>0 |
|
65 | 66 | function s.selfspcon(e,c) |
66 | 67 | if not c then return true end |
67 | 68 | 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()) |
69 | 70 | return #mg>=2 and aux.SelectUnselectGroup(mg,e,tp,2,2,s.rescon,0) |
70 | 71 | end |
71 | 72 | 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()) |
73 | 74 | local g=aux.SelectUnselectGroup(mg,e,tp,2,2,s.rescon,1,tp,HINTMSG_RELEASE,nil,nil,true) |
74 | 75 | if #g>0 then |
75 | 76 | g:KeepAlive() |
|
0 commit comments