* Asceticism - Fixed a bug that no real Hexproof ability was gained (this fixed the problem with the failing PhantasmalImageTest).

This commit is contained in:
LevelX2 2014-05-23 16:06:35 +02:00
parent 9d8d1409b2
commit 19ccd5bc23
4 changed files with 23 additions and 73 deletions

View file

@ -98,7 +98,7 @@ public class BoostTargetEffect extends ContinuousEffectImpl<BoostTargetEffect> {
public boolean apply(Game game, Ability source) {
int affectedTargets = 0;
for (UUID permanentId : targetPointer.getTargets(game, source)) {
Permanent target = (Permanent) game.getPermanent(permanentId);
Permanent target = game.getPermanent(permanentId);
if (target != null) {
target.addPower(power.calculate(game, source));
target.addToughness(toughness.calculate(game, source));