mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed NPE which happened on occasion during AI simulations.
This commit is contained in:
parent
7698581116
commit
ff3e0108cd
1 changed files with 12 additions and 8 deletions
|
@ -94,6 +94,7 @@ class VampireHexmageEffect extends OneShotEffect<VampireHexmageEffect> {
|
|||
|
||||
Permanent permanent = game.getPermanent(target.getFirstTarget());
|
||||
|
||||
if ( permanent != null ) {
|
||||
String[ ] counterNames = permanent.getCounters().keySet().toArray(new String[0]);
|
||||
|
||||
if ( permanent.getLoyalty() != null ) {
|
||||
|
@ -107,4 +108,7 @@ class VampireHexmageEffect extends OneShotEffect<VampireHexmageEffect> {
|
|||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue