* UnearthAbility - Fixed that unearthed creatures had no haste.

This commit is contained in:
LevelX2 2013-06-18 15:14:53 +02:00
parent ef83ec2874
commit 9c6db9405a
4 changed files with 28 additions and 21 deletions

View file

@ -156,7 +156,8 @@ public class ContinuousEffects implements Serializable {
case WhileInGraveyard:
HashSet<Ability> abilities = layeredEffects.getAbility(effect.getId());
for (Ability ability: abilities) {
if (ability.isInUseableZone(game, null, false)) {
// If e.g. triggerd abilities (non static) created the effect, the ability must not be in usable zone (e.g. Unearth giving Haste effect)
if (!(ability instanceof StaticAbility) || ability.isInUseableZone(game, null, false)) {
layerEffects.add(effect);
break;
}