This commit is contained in:
Loki 2011-09-16 00:00:55 +03:00
parent 970bef84d1
commit 6ab12783c9

View file

@ -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;
} }