Skip to content

Commit 2f86654

Browse files
authored
updates
- Grandpa Demetto & Primathmech Laplacian: use 'Effect.GetChainData' for consistency - Mirror Imagine Prism Coat 8: last 'unaffected by... except "achetype"...' card
1 parent 460fbc2 commit 2f86654

4 files changed

Lines changed: 15 additions & 18 deletions

File tree

official/c44190146.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
7373
Duel.SpecialSummonComplete()
7474
end
7575
function s.descon(e,tp,eg,ep,ev,re,r,rp)
76-
local dg=Chain.Data().cost_detached_materials
76+
local dg=re:GetChainData().cost_detached_materials
7777
return dg and re:GetHandler():IsControler(tp) and re:IsActiveType(TYPE_XYZ)
7878
and dg:IsExists(Card.IsOriginalType,1,nil,TYPE_NORMAL)
7979
end
@@ -99,4 +99,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
9999
and cd.xyz_card:IsFaceup() then
100100
Duel.Damage(1-tp,cd.xyz_card:GetRank()*300,REASON_EFFECT)
101101
end
102-
end
102+
end

official/c70088809.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
6868
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
6969
end
7070
if cd.reveal_count>=4 then
71-
cd.revealed_synchros:Match(Card.IsRelateToEffect,nil,e)
7271
--● 4+: Send 1 of the revealed Synchro Monsters to the GY
72+
cd.revealed_synchros:Match(Card.IsRelateToEffect,nil,e)
7373
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
7474
local g=cd.revealed_synchros:FilterSelect(tp,Card.IsAbleToGrave,1,1,nil)
7575
if #g>0 then
@@ -104,4 +104,4 @@ function s.aclimit(e,re,tp)
104104
local rc=re:GetHandler()
105105
return re:IsMonsterEffect() and rc:IsOnField() and rc:IsSummonLocation(LOCATION_EXTRA)
106106
and not rc:IsSynchroMonster()
107-
end
107+
end

official/c88021907.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
5656
{b3,aux.Stringid(id,3)}
5757
}
5858
local locations=0
59-
local ct=#Chain.Data().cost_detached_materials
6059
local cd=e:GetChainData()
60+
local ct=#cd.cost_detached_materials
6161
cd.selected_effects={}
6262
for i=1,ct do
6363
local op=Duel.SelectEffect(tp,table.unpack(options))
@@ -100,4 +100,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
100100
Duel.SendtoGrave(g,REASON_EFFECT)
101101
end
102102
end
103-
end
103+
end

unofficial/c511009645.lua

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
5555
e1:SetType(EFFECT_TYPE_SINGLE)
5656
e1:SetCode(EFFECT_IMMUNE_EFFECT)
5757
e1:SetRange(LOCATION_MZONE)
58-
e1:SetValue(s.efilterS)
58+
e1:SetValue(function(e,te)
59+
return te:IsSpellEffect() and e:GetHandlerPlayer()~=te:GetHandlerPlayer()
60+
end)
5961
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
6062
tc:RegisterEffect(e1)
6163
elseif op==1 then
@@ -65,7 +67,9 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
6567
e2:SetType(EFFECT_TYPE_SINGLE)
6668
e2:SetRange(LOCATION_MZONE)
6769
e2:SetCode(EFFECT_IMMUNE_EFFECT)
68-
e2:SetValue(s.efilterT)
70+
e2:SetValue(function(e,te)
71+
return te:IsTrapEffect() and e:GetHandlerPlayer()~=te:GetHandlerPlayer()
72+
end)
6973
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
7074
tc:RegisterEffect(e2)
7175
elseif op==2 then
@@ -76,17 +80,10 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
7680
e3:SetRange(LOCATION_MZONE)
7781
e3:SetCode(EFFECT_IMMUNE_EFFECT)
7882
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
79-
e3:SetValue(s.efilterM)
83+
e3:SetValue(function(e,te)
84+
return te:IsMonsterEffect() and not te:IsCardSetcode(0x572)
85+
end)
8086
tc:RegisterEffect(e3)
8187
end
8288
end
83-
end
84-
function s.efilterS(e,te)
85-
return te:IsActiveType(TYPE_SPELL) and e:GetHandlerPlayer()~=te:GetHandlerPlayer()
86-
end
87-
function s.efilterT(e,te)
88-
return te:IsActiveType(TYPE_TRAP) and e:GetHandlerPlayer()~=te:GetHandlerPlayer()
89-
end
90-
function s.efilterM(e,te)
91-
return te:IsActiveType(TYPE_MONSTER) and not te:GetHandler():IsSetCard(0x572)
9289
end

0 commit comments

Comments
 (0)