mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Fixed a possible null pointer exception concerning Aura enchantments without targets log message.
This commit is contained in:
parent
38f9bb90b2
commit
3142866ede
1 changed files with 1 additions and 1 deletions
|
@ -1520,7 +1520,7 @@ public abstract class GameImpl implements Game, Serializable {
|
||||||
else {
|
else {
|
||||||
if (perm.getSpellAbility().getTargets().isEmpty()) {
|
if (perm.getSpellAbility().getTargets().isEmpty()) {
|
||||||
Permanent enchanted = this.getPermanent(perm.getAttachedTo());
|
Permanent enchanted = this.getPermanent(perm.getAttachedTo());
|
||||||
logger.error("Aura without target: " + perm.getName() + " attached to " + enchanted == null ? " null" : enchanted.getName());
|
logger.error("Aura without target: " + perm.getName() + " attached to " + (enchanted == null ? " null" : enchanted.getName()));
|
||||||
} else {
|
} else {
|
||||||
Target target = perm.getSpellAbility().getTargets().get(0);
|
Target target = perm.getSpellAbility().getTargets().get(0);
|
||||||
if (target instanceof TargetPermanent) {
|
if (target instanceof TargetPermanent) {
|
||||||
|
|
Loading…
Reference in a new issue