minor ScepterOfEmpires fix

This commit is contained in:
magenoxx 2011-09-25 14:24:41 +04:00
parent b1efc0d1bf
commit c3c8d587fb

View file

@ -94,11 +94,7 @@ class ScepterOfEmpiresEffect extends OneShotEffect<ScepterOfEmpiresEffect> {
}
int amount = throne && crown ? 3 : 1;
Permanent permanent = game.getPermanent(targetPointer.getFirst(source));
if (permanent != null) {
permanent.damage(amount, source.getSourceId(), game, true, false);
return true;
}
Player player = game.getPlayer(targetPointer.getFirst(source));
if (player != null) {
player.damage(amount, source.getSourceId(), game, false, true);