Test and fix for Issue#44: War Falcon - Attack condition does not work properly. Fixed changing controller for game state effects

This commit is contained in:
magenoxx 2012-08-16 08:54:53 +04:00
parent 335462c8c8
commit f2229f9fd7
4 changed files with 62 additions and 8 deletions

View file

@ -122,7 +122,7 @@ class DungeonGeistsEffect extends ReplacementEffectImpl<DungeonGeistsEffect> {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (event.getType() == GameEvent.EventType.LOST_CONTROL) {
if (event.getPlayerId().equals(source.getControllerId()) && event.getTargetId().equals(source.getSourceId())) {
if (event.getTargetId().equals(source.getSourceId())) {
this.used = true;
return false;
}