fixed for previous commit

This commit is contained in:
magenoxx 2012-08-29 22:58:04 +04:00
parent 0471771451
commit db30268bc0
3 changed files with 12 additions and 7 deletions

View file

@ -125,9 +125,10 @@ class GainReboundEffect extends ContinuousEffectImpl<GainReboundEffect> {
return false;
}
private class AttachedReboundAbility extends ReboundAbility {}
}
class AttachedReboundAbility extends ReboundAbility {}
class LeavesBattlefieldWatcher extends WatcherImpl<LeavesBattlefieldWatcher> {
public LeavesBattlefieldWatcher() {
@ -148,7 +149,7 @@ class LeavesBattlefieldWatcher extends WatcherImpl<LeavesBattlefieldWatcher> {
for (Card card : player.getHand().getCards(CastThroughTime.filter, game)) {
Iterator<Ability> it = card.getAbilities().iterator();
while (it.hasNext()) {
if (it.next() instanceof ReboundAbility) {
if (it.next() instanceof AttachedReboundAbility) {
it.remove();
}
}