Commit 64a6458d authored by nekrozar's avatar nekrozar

fix Assault Dog

parent 8c5078e6
...@@ -23,17 +23,12 @@ function c72714226.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,17 +23,12 @@ function c72714226.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c72714226.operation(e,tp,eg,ep,ev,re,r,rp) function c72714226.operation(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE) local ct=math.min((Duel.GetLocationCount(tp,LOCATION_MZONE)),3)
if ct<=0 then return end if ct<=0 then return end
local g=Duel.GetMatchingGroup(c72714226.filter,tp,LOCATION_DECK,0,nil,e,tp) if Duel.IsPlayerAffectedByEffect(tp,59822133) then ct=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c72714226.filter,tp,LOCATION_DECK,0,1,ct,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
local tc1=g:GetFirst() Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
local tc2=g:GetNext()
Duel.SpecialSummonStep(tc1,0,tp,tp,false,false,POS_FACEUP)
if tc2 and ct>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.SelectYesNo(tp,aux.Stringid(72714226,1)) then
Duel.SpecialSummonStep(tc2,0,tp,tp,false,false,POS_FACEUP)
end
Duel.SpecialSummonComplete()
end end
end end
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