Skip to content

Commit 1a473b6

Browse files
authored
draw model fixed
1 parent a4ef809 commit 1a473b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripthesaurus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def scriptranslate(psct):
122122
case 'special summon ':
123123
return (res[0],1,'<add func>',base_filter)+add_target+add_operation+('<expand effect>','e1:SetCategory(CATEGORY_SPECIAL_SUMMON)\n <expand effect>','<edit target>','if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0\n and Duel.IsExistingMatchingCard(s.filter,tp,<from>,0,1,nil,e,tp) end\n Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,<from>)\n <edit target>','<edit operation>','if Duel.GetLocationCount(tp,LOCATION_MZONE)<<amount> then return end\n Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)\n local g=Duel.SelectMatchingCard(tp,s.filter,tp,<from>,0,1,<amount>,nil,e,tp)\n if #g>Duel.GetLocationCount(tp,LOCATION_MZONE) then\n Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)\n <edit operation>')
124124

125-
case 'draw':
125+
case 'draw ':
126126
return (res[0],1,'<expand effect>','e1:SetCategory(CATEGORY_DRAW)\n e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)\n <expand effect>')+add_target+add_operation+('<edit target>','if chk==0 then return Duel.IsPlayerCanDraw(tp,<amount>) end\n Duel.SetTargetPlayer(tp)\n Duel.SetTargetParam(<amount>)\n Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)\n <edit target>','<edit operation>','local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)\n Duel.Draw(p,d,REASON_EFFECT)\n <edit operation>')
127127

128128
case '<contemp>':

0 commit comments

Comments
 (0)