Card.IsCanRemoveCounter
Signature
lua
Card.IsCanRemoveCounter(Card c, int player, int countertype, int count, int reason) -> bool|nilDescription
Checks whether player can remove count counters of countertype from c for reason.
Parameters
cCardplayerintcountertypeintcountintreasonint
Returns
bool|nil- nil if player is invalid.
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3691
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 21 indexed script(s).
- Search this function in the Script Explorer with
Card.IsCanRemoveCounter.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| El Shaddoll Apkallone | 50907446 | Scripts/c50907446.lua | 2 |
| El Shaddoll Meshachrer | 32467459 | Scripts/c32467459.lua | 2 |
| Zebufera, Vaalmonican Hallow Heathen | 2815176 | Scripts/c2815176.lua | 2 |
| Limit Code | 86607583 | Scripts/c86607583.lua | 1 |
| Chaos Core | 54040484 | Scripts/c54040484.lua | 1 |
| Mythical Institution | 94599451 | Scripts/c94599451.lua | 1 |
| Endymion, the Master Magician | 40732515 | Scripts/c40732515.lua | 1 |
| Beat Cop from the Underworld | 99011763 | Scripts/c99011763.lua | 1 |
| Link Turret | 55034079 | Scripts/c55034079.lua | 1 |
| Full Moon Mirror | 44857722 | Scripts/c44857722.lua | 3 |
| Ursarctic Radiation | 32692693 | Scripts/c32692693.lua | 1 |
| Duralume, Vaalmonican Heathen Hallow | 76821171 | Scripts/c76821171.lua | 2 |
| Thelematech Clatis | 98986900 | Scripts/c98986900.lua | 1 |
| Magical Exemplar | 6061630 | Scripts/c6061630.lua | 1 |
| F.A. Shining Star GT | 37414347 | Scripts/c37414347.lua | 1 |
| BOXer | 61156777 | Scripts/c61156777.lua | 1 |
| Pitch-Black Power Stone | 34029630 | Scripts/c34029630.lua | 3 |
| Hinezumi Hanabi | 71459017 | Scripts/c71459017.lua | 1 |
| Blast Magician | 21051146 | Scripts/c21051146.lua | 1 |
| Myriaday Dragon | 81758313 | Scripts/c81758313.lua | 1 |
| Magical Citadel of Endymion | 39910367 | Scripts/c39910367.lua | 1 |
Script Examples
El Shaddoll Apkallone (50907446)
Source: Scripts/c50907446.lua
lua
local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
local exg=nil
if fc and fc:IsHasEffect(81788994) and fc:IsCanRemoveCounter(tp,0x16,3,REASON_EFFECT) then
local fe=fc:IsHasEffect(81788994)
exg=Duel.GetMatchingGroup(c50907446.FShaddollExFilter,tp,0,LOCATION_MZONE,mg,c,fe)El Shaddoll Meshachrer (32467459)
Source: Scripts/c32467459.lua
lua
local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
local exg=nil
if fc and fc:IsHasEffect(81788994) and fc:IsCanRemoveCounter(tp,0x16,3,REASON_EFFECT) then
local fe=fc:IsHasEffect(81788994)
exg=Duel.GetMatchingGroup(s.FShaddollExFilter,tp,0,LOCATION_MZONE,mg,c,fe)Zebufera, Vaalmonican Hallow Heathen (2815176)
Source: Scripts/c2815176.lua
lua
local ct=0
for i=1,3 do
if tc:IsCanRemoveCounter(tp,0x6a,i,REASON_COST) then ct=i end
end
tl=tl+ct