Commit 30584fbc authored by salix5's avatar salix5

revert for some cards

34471458 フォーチュンレディ·ライティー
The original effect is correct.
Reverted to previos version.

47297616 光と闇の竜
Destroy and sp_summon are at different timing.
Reverted to original version.

54704216 拷問車輪
The original effect is correct.
Reverted to previos version.

73414375 ディメンション·ポッド
Effect taken from Konami database:
リバース:お互いのプレイヤーは、相手の墓地のカードを3枚までゲームから除外する事ができる。
In OCG version, this card can banish ALL KINDS of cards.
Reverted to previos version.

Note:
Please don't use Percival's mod version while debugging.
This mod version has unknown bugs and may cause some problems for
certain cards.
parent 1f5a7407
...@@ -53,7 +53,7 @@ end ...@@ -53,7 +53,7 @@ end
function c34471458.spcon(e,tp,eg,ep,ev,re,r,rp) function c34471458.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_EFFECT) and not c:IsLocation(LOCATION_DECK) return c:IsReason(REASON_EFFECT) and not c:IsLocation(LOCATION_DECK)
and (c:IsPreviousPosition(POS_FACEUP) or c:IsLocation(LOCATION_HAND)) and c:IsPreviousPosition(POS_FACEUP)
end end
function c34471458.spfilter(c,e,tp) function c34471458.spfilter(c,e,tp)
return c:IsSetCard(0x31) and c:IsCanBeSpecialSummoned(e,0x8,tp,false,false) return c:IsSetCard(0x31) and c:IsCanBeSpecialSummoned(e,0x8,tp,false,false)
......
...@@ -91,6 +91,7 @@ function c47297616.opspsum(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,6 +91,7 @@ function c47297616.opspsum(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(dg,REASON_EFFECT) Duel.Destroy(dg,REASON_EFFECT)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsRelateToEffect(e) then
Duel.BreakEffect()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
end end
...@@ -56,13 +56,6 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,13 +56,6 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_CHANGE_POSITION) e2:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
tc:RegisterEffect(e2,true) tc:RegisterEffect(e2,true)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
e3:SetReset(RESET_EVENT+0x1fc0000)
e3:SetCondition(c54704216.rcon)
tc:RegisterEffect(e3)
end end
end end
function c54704216.rcon(e) function c54704216.rcon(e)
......
...@@ -10,26 +10,20 @@ function c73414375.initial_effect(c) ...@@ -10,26 +10,20 @@ function c73414375.initial_effect(c)
e1:SetOperation(c73414375.operation) e1:SetOperation(c73414375.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c73414375.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function c73414375.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c73414375.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return true end if chk==0 then return true end
local g=Group.CreateGroup() local g=Group.CreateGroup()
if Duel.IsExistingTarget(c73414375.filter,tp,0,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(73414375,1)) then if Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(73414375,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=Duel.SelectTarget(tp,c73414375.filter,tp,0,LOCATION_GRAVE,1,3,nil) local rg=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,3,nil)
g:Merge(rg) g:Merge(rg)
end end
if Duel.IsExistingTarget(c73414375.filter,1-tp,0,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(1-tp,aux.Stringid(73414375,1)) then if Duel.IsExistingTarget(Card.IsAbleToRemove,1-tp,0,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(1-tp,aux.Stringid(73414375,1)) then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_REMOVE)
local rg=Duel.SelectTarget(1-tp,c73414375.filter,1-tp,0,LOCATION_GRAVE,1,3,nil) local rg=Duel.SelectTarget(1-tp,Card.IsAbleToRemove,1-tp,0,LOCATION_GRAVE,1,3,nil)
if rg then
g:Merge(rg) g:Merge(rg)
end end
end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
end end
function c73414375.operation(e,tp,eg,ep,ev,re,r,rp) function c73414375.operation(e,tp,eg,ep,ev,re,r,rp)
......
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