mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
fix NPE
This commit is contained in:
parent
970bef84d1
commit
6ab12783c9
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,8 @@ public class ConditionalOneShotEffect extends OneShotEffect<ConditionalOneShotEf
|
||||||
public ConditionalOneShotEffect ( ConditionalOneShotEffect effect ) {
|
public ConditionalOneShotEffect ( ConditionalOneShotEffect effect ) {
|
||||||
super(effect);
|
super(effect);
|
||||||
this.effect = (OneShotEffect) effect.effect.copy();
|
this.effect = (OneShotEffect) effect.effect.copy();
|
||||||
this.otherwiseEffect = (OneShotEffect) effect.otherwiseEffect.copy();
|
if (effect.otherwiseEffect != null)
|
||||||
|
this.otherwiseEffect = (OneShotEffect) effect.otherwiseEffect.copy();
|
||||||
this.condition = effect.condition;
|
this.condition = effect.condition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue