Commit c669afb2 authored by TanakaKotoha's avatar TanakaKotoha

lua fix

parent 2422c427
...@@ -60,11 +60,11 @@ function c65030083.negop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,11 +60,11 @@ function c65030083.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummon(tp) then if Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummon(tp) then
Duel.BreakEffect() Duel.BreakEffect()
local tgg=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local tgg=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
local tc=tgg:RandomSelect(1-tp,1) local tg=tgg:RandomSelect(1-tp,1)
Duel.HintSelection(tc) Duel.HintSelection(tg)
if c65030083.checkfil(tc:GetFirst(),e,tp) then if c65030083.checkfil(tg:GetFirst(),e,tp) then
Duel.NegateActivation(ev) Duel.NegateActivation(ev)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP)
end end
end end
end end
......
...@@ -41,10 +41,9 @@ function c81012060.initial_effect(c) ...@@ -41,10 +41,9 @@ function c81012060.initial_effect(c)
e4:SetDescription(aux.Stringid(81012060,1)) e4:SetDescription(aux.Stringid(81012060,1))
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_GRAVE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,81012960) e4:SetCountLimit(1,81012960)
e4:SetCondition(c81012060.thcon) e4:SetCondition(c81012060.thcon)
e4:SetCost(aux.bfgcost)
e4:SetTarget(c81012060.thtg) e4:SetTarget(c81012060.thtg)
e4:SetOperation(c81012060.thop) e4:SetOperation(c81012060.thop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
......
...@@ -18,7 +18,7 @@ function c81012062.initial_effect(c) ...@@ -18,7 +18,7 @@ function c81012062.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,81012062) e1:SetCountLimit(1,81012962)
e1:SetTarget(c81012062.settg) e1:SetTarget(c81012062.settg)
e1:SetOperation(c81012062.setop) e1:SetOperation(c81012062.setop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
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