- Added some ROE cards.

This commit is contained in:
jeffwadsworth 2012-03-31 10:09:45 -05:00
parent f0c5cb3eef
commit 0db5efa7ad

View file

@ -92,20 +92,18 @@ class ArrogantBloodlordTriggeredAbility extends TriggeredAbilityImpl<ArrogantBlo
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.BLOCKER_DECLARED) { if (event.getType() == GameEvent.EventType.BLOCKER_DECLARED) {
Permanent blocker = game.getPermanent(event.getTargetId()); Permanent blocker = game.getPermanent(event.getSourceId());
if (blocker != null && blocker.getPower().getValue() < 2) { Permanent arrogantBloodlord = game.getPermanent(sourceId);
if (blocker != null && blocker != arrogantBloodlord && blocker.getPower().getValue() < 2) {
return true; return true;
} }
if (blocker == game.getPermanent(event.getSourceId())) { if (blocker != null && blocker == arrogantBloodlord && game.getPermanent(event.getTargetId()).getPower().getValue() < 2) {
if (blocker != null && game.getPermanent(event.getTargetId()).getPower().getValue() < 2) {
return true; return true;
} }
return false; return false;
} }
return false; return false;
} }
return false;
}
@Override @Override
public String getRule() { public String getRule() {