mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
Glimmer Lens - fixed game error on usage (NPE)
This commit is contained in:
parent
0bf4b63bcf
commit
a078b67434
1 changed files with 3 additions and 0 deletions
|
|
@ -71,6 +71,9 @@ class GlimmerLensTriggeredAbility extends TriggeredAbilityImpl {
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Permanent attachment = getSourcePermanentOrLKI(game);
|
||||
if (attachment == null) {
|
||||
return false;
|
||||
}
|
||||
UUID equippedCreature = attachment.getAttachedTo();
|
||||
return game.getCombat().getAttackers().contains(equippedCreature)
|
||||
&& game
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue