Skip to content

Commit 22918fe

Browse files
authored
Update "Command Angel (Anime)"
- Missing the effect to prevent it being targeted for attacks. - Script clean-up
1 parent 58959d4 commit 22918fe

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

unofficial/c511000653.lua

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
--Command Angel
1+
--コマンド・エンジェル (Anime)
2+
--Command Angel (Anime)
23
local s,id=GetID()
34
function s.initial_effect(c)
4-
--atk def
5+
--If you control another monster, monsters your opponent controls cannot target this card for attacks.
56
local e1=Effect.CreateEffect(c)
6-
e1:SetType(EFFECT_TYPE_FIELD)
7+
e1:SetType(EFFECT_TYPE_SINGLE)
8+
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
9+
e1:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
710
e1:SetRange(LOCATION_MZONE)
8-
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
9-
e1:SetCode(EFFECT_UPDATE_ATTACK)
10-
e1:SetTarget(s.tg)
11-
e1:SetValue(400)
11+
e1:SetCondition(function(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_MZONE,0)>1 end)
12+
e1:SetValue(aux.imval1)
1213
c:RegisterEffect(e1)
14+
--All Fairy-Type monsters gain 400 ATK while this card is face-up on the field
15+
local e2=Effect.CreateEffect(c)
16+
e2:SetType(EFFECT_TYPE_FIELD)
17+
e2:SetCode(EFFECT_UPDATE_ATTACK)
18+
e2:SetRange(LOCATION_MZONE)
19+
e2:SetTargetRange(LOCATION_MZONE,0)
20+
e2:SetTarget(function(e,c) return c:IsFaceup() and c:IsRace(RACE_FAIRY) end)
21+
e2:SetValue(400)
22+
c:RegisterEffect(e2)
1323
end
14-
function s.tg(e,c)
15-
return c:IsRace(RACE_FAIRY)
16-
end

0 commit comments

Comments
 (0)