Duel.GetAttacker
Signature
lua
Duel.GetAttacker() -> CardDescription
Returns the monster that is currently attacking, or nil if there is no current attacker.
Returns
Card
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4957
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 865 indexed script(s).
- Search this function in the Script Explorer with
Duel.GetAttacker.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Prank-Kids Weather Washer | 44509529 | Scripts/c44509529.lua | 1 |
| Light End Sublimation Dragon | 35614780 | Scripts/c35614780.lua | 2 |
| Red-Eyes Slash Dragon | 21140872 | Scripts/c21140872.lua | 1 |
| Trirealm Rift Judgment | 65195679 | Scripts/c65195679.lua | 1 |
| K9-X Forced Release | 53792930 | Scripts/c53792930.lua | 1 |
| Performapal Odd-Eyes Dissolver | 46136942 | Scripts/c46136942.lua | 1 |
| Number 99: Utopia Dragonar | 95134948 | Scripts/c95134948.lua | 2 |
| Ursarctic Quint Charge | 15758127 | Scripts/c15758127.lua | 1 |
| Number 38: Hope Harbinger Dragon Titanic Galaxy | 63767246 | Scripts/c63767246.lua | 1 |
| All-Eyes Phantom Dragon | 70335319 | Scripts/c70335319.lua | 3 |
| Nirvana High Paladin | 80896940 | Scripts/c80896940.lua | 4 |
| Favorite Hero | 11881272 | Scripts/c11881272.lua | 1 |
| Genex Ally Triforce | 52709508 | Scripts/c52709508.lua | 2 |
| Gladiator Beast Gaiodiaz | 90957527 | Scripts/c90957527.lua | 1 |
| Magnet Warrior Sigma Minus | 87814728 | Scripts/c87814728.lua | 1 |
| Megaroid City | 44139064 | Scripts/c44139064.lua | 2 |
| PSY-Framegear Beta | 2810642 | Scripts/c2810642.lua | 4 |
| Salamangreat Sanctuary | 1295111 | Scripts/c1295111.lua | 1 |
| D/D/D Super Doom King Bright Armageddon | 72402069 | Scripts/c72402069.lua | 1 |
| Shura the Combat Star | 32615065 | Scripts/c32615065.lua | 2 |
| Cubic Rebirth | 71442223 | Scripts/c71442223.lua | 2 |
| Witchcrafter Madame Verre | 21522601 | Scripts/c21522601.lua | 3 |
| X-Saber Gottoms | 8252010 | Scripts/c8252010.lua | 1 |
| Armed Dragon LV10 White | 84425220 | Scripts/c84425220.lua | 1 |
| ...and 841 more |
Script Examples
Prank-Kids Weather Washer (44509529)
Source: Scripts/c44509529.lua
lua
end
function c44509529.actcon(e)
local a=Duel.GetAttacker()
return a and a:IsControler(e:GetHandlerPlayer()) and a:IsSetCard(0x120)
endLight End Sublimation Dragon (35614780)
Source: Scripts/c35614780.lua
lua
end
function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp)
end
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk)Red-Eyes Slash Dragon (21140872)
Source: Scripts/c21140872.lua
lua
end
function c21140872.eqcon(e)
return Duel.GetAttacker():IsSetCard(0x3b)
end
function c21140872.eqfilter(c,tp)