|
3 | 3 | --scripted by pyrQ |
4 | 4 | local s,id=GetID() |
5 | 5 | function s.initial_effect(c) |
6 | | - --Apply this effect 3 times: ● Each player reveals 1 monster in their Deck, except a monster with ? ATK. Add the monster with higher ATK to the hand of the player that revealed it, also destroy the monster with lower ATK, and if you do, inflict 500 damage to the player that revealed it. If they have the same ATK, shuffle them into the Deck |
| 6 | + --Apply this effect 3 times, in sequence: ● Each player reveals 1 monster in their Deck, except a monster with ? ATK. Add the monster with higher ATK to the hand of the player that revealed it, also destroy the monster with lower ATK, and if you do, inflict 500 damage to the player that revealed it. If they have the same ATK, shuffle them into the Deck |
7 | 7 | local e1=Effect.CreateEffect(c) |
8 | 8 | e1:SetDescription(aux.Stringid(id,0)) |
9 | 9 | e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DESTROY+CATEGORY_DAMAGE) |
@@ -46,7 +46,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) |
46 | 46 | table.insert(tp_codes,sc1:GetCode()) |
47 | 47 | table.insert(opp_codes,sc2:GetCode()) |
48 | 48 | sc1:RegisterFlagEffect(id,RESETS_STANDARD_PHASE_END,0,1) |
49 | | - sc2:RegisterFlagEffect(id+100,RESETS_STANDARD_PHASE_END,0,1) |
| 49 | + sc2:RegisterFlagEffect(id+1,RESETS_STANDARD_PHASE_END,0,1) |
50 | 50 | atk1=sc1:GetAttack() |
51 | 51 | atk2=sc2:GetAttack() |
52 | 52 | if atk1>atk2 then |
@@ -87,6 +87,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) |
87 | 87 | e1:SetReset(RESET_PHASE|PHASE_END) |
88 | 88 | Duel.RegisterEffect(e1,tp) |
89 | 89 | local e2=e1:Clone() |
90 | | - e2:SetValue(function(e,re,tp) local rc=re:GetHandler() return re:IsMonsterEffect() and (rc:HasFlagEffect(id+100) or rc:IsCode(opp_codes)) end) |
| 90 | + e2:SetValue(function(e,re,tp) local rc=re:GetHandler() return re:IsMonsterEffect() and (rc:HasFlagEffect(id+1) or rc:IsCode(opp_codes)) end) |
91 | 91 | Duel.RegisterEffect(e2,opp) |
92 | 92 | end |
0 commit comments