Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -425,7 +425,29 @@ end --} fun["随机抽卡"] = function(str_1) --{ str["随机抽卡的数量"] = str_1 + effect_1 = Effect.GlobalEffect() + + effect_1:SetType(EFFECT_TYPE_FIELD + + EFFECT_TYPE_CONTINUOUS) + + effect_1:SetCode(EVENT_ADJUST) + + effect_1:SetCondition(aux.TRUE) + + function cache_1(effect_event + , player_who_activate_the_effect) --{ + Duel.ShuffleDeck(0) + Duel.Draw(0,str_1,REASON_RULE) + + effect_event:Reset() + + end --} + + effect_1:SetOperation(cache_1) + + Duel.RegisterEffect(effect_1 + , 0) end --}