Commit 85dba15c authored by mercury233's avatar mercury233

add XYZ material gain effect hint for opponent

parent 9c65068d
...@@ -77,7 +77,7 @@ function c12948099.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +77,7 @@ function c12948099.efop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c12948099.drcon2) e1:SetCondition(c12948099.drcon2)
e1:SetTarget(c12948099.drtg) e1:SetTarget(c12948099.drtg2)
e1:SetOperation(c12948099.drop) e1:SetOperation(c12948099.drop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
...@@ -93,3 +93,10 @@ end ...@@ -93,3 +93,10 @@ end
function c12948099.drcon2(e,tp,eg,ep,ev,re,r,rp) function c12948099.drcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c12948099.drtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
...@@ -77,6 +77,7 @@ function c17946349.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,6 +77,7 @@ function c17946349.discon(e,tp,eg,ep,ev,re,r,rp)
end end
function c17946349.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c17946349.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(17946349,3)) e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(17946349,3))
end end
......
...@@ -51,6 +51,7 @@ function c24610207.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,6 +51,7 @@ function c24610207.drcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c24610207.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c24610207.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
...@@ -70,6 +70,7 @@ end ...@@ -70,6 +70,7 @@ end
function c38331564.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c38331564.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,e:GetHandler()) local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......
...@@ -54,6 +54,7 @@ function c45184165.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,6 +54,7 @@ function c45184165.efop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c45184165.atkcon) e1:SetCondition(c45184165.atkcon)
e1:SetTarget(c45184165.atktg)
e1:SetOperation(c45184165.atkop) e1:SetOperation(c45184165.atkop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
...@@ -69,6 +70,10 @@ end ...@@ -69,6 +70,10 @@ end
function c45184165.atkcon(e,tp,eg,ep,ev,re,r,rp) function c45184165.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c45184165.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c45184165.atkop(e,tp,eg,ep,ev,re,r,rp) function c45184165.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
......
...@@ -55,6 +55,7 @@ function c4647954.thfilter(c) ...@@ -55,6 +55,7 @@ function c4647954.thfilter(c)
end end
function c4647954.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c4647954.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c4647954.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c4647954.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c4647954.thop(e,tp,eg,ep,ev,re,r,rp) function c4647954.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -34,6 +34,7 @@ function c63821877.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,6 +34,7 @@ function c63821877.efop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c63821877.atkcon) e1:SetCondition(c63821877.atkcon)
e1:SetTarget(c63821877.atktg)
e1:SetOperation(c63821877.atkop) e1:SetOperation(c63821877.atkop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
...@@ -49,6 +50,10 @@ end ...@@ -49,6 +50,10 @@ end
function c63821877.atkcon(e,tp,eg,ep,ev,re,r,rp) function c63821877.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c63821877.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c63821877.atkop(e,tp,eg,ep,ev,re,r,rp) function c63821877.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
......
...@@ -133,6 +133,7 @@ function c67120578.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -133,6 +133,7 @@ function c67120578.drcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c67120578.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c67120578.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
...@@ -56,6 +56,7 @@ function c68258355.thfilter(c) ...@@ -56,6 +56,7 @@ function c68258355.thfilter(c)
end end
function c68258355.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c68258355.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c68258355.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c68258355.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c68258355.thop(e,tp,eg,ep,ev,re,r,rp) function c68258355.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -21,6 +21,7 @@ function c7080743.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,6 +21,7 @@ function c7080743.efop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c7080743.atkcon) e1:SetCondition(c7080743.atkcon)
e1:SetTarget(c7080743.atktg)
e1:SetOperation(c7080743.atkop) e1:SetOperation(c7080743.atkop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
...@@ -36,6 +37,10 @@ end ...@@ -36,6 +37,10 @@ end
function c7080743.atkcon(e,tp,eg,ep,ev,re,r,rp) function c7080743.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c7080743.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c7080743.atkop(e,tp,eg,ep,ev,re,r,rp) function c7080743.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
......
...@@ -69,6 +69,7 @@ function c94344242.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,6 +69,7 @@ function c94344242.efop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c94344242.defcon) e1:SetCondition(c94344242.defcon)
e1:SetTarget(c94344242.deftg)
e1:SetOperation(c94344242.defop) e1:SetOperation(c94344242.defop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
...@@ -84,6 +85,10 @@ end ...@@ -84,6 +85,10 @@ end
function c94344242.defcon(e,tp,eg,ep,ev,re,r,rp) function c94344242.defcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c94344242.deftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c94344242.defop(e,tp,eg,ep,ev,re,r,rp) function c94344242.defop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
Duel.ChangePosition(g,POS_FACEUP_DEFENSE) Duel.ChangePosition(g,POS_FACEUP_DEFENSE)
......
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