forked from External/mage
Remove KickerAbility.getSpellKickedCount (#12553)
* Remove KickerAbility.getSpellKickedCount * Check spell LKI instead of only current spell object * Remove bad LKI storage under wrong ID
This commit is contained in:
parent
2118570a0d
commit
78649c1a62
12 changed files with 91 additions and 127 deletions
|
|
@ -1727,7 +1727,8 @@ public final class CardUtil {
|
|||
/**
|
||||
* Returns the entire cost tags map of either the source ability, or the permanent source of the ability. May be null.
|
||||
* Works in any moment (even before source ability activated)
|
||||
* Usually you should use one of the single tag functions instead: getSourceCostsTag() or checkSourceCostsTagExists()
|
||||
* <p>
|
||||
* Usually you should use one of the single tag functions instead: getSourceCostsTag() or checkSourceCostsTagExists().
|
||||
* Use this function with caution, as it directly exposes the backing data structure.
|
||||
*
|
||||
* @param game
|
||||
|
|
@ -1751,9 +1752,9 @@ public final class CardUtil {
|
|||
}
|
||||
|
||||
// from any ability before resolve (on stack) - access by spell ability
|
||||
MageObject sourceObject = source.getSourceObject(game);
|
||||
if (sourceObject instanceof Spell) {
|
||||
return ((Spell) sourceObject).getSpellAbility().getCostsTagMap();
|
||||
Spell sourceObject = game.getSpellOrLKIStack(source.getSourceId());
|
||||
if (sourceObject != null) {
|
||||
return sourceObject.getSpellAbility().getCostsTagMap();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue