forked from External/mage
- Hopefully a fix for #6740
This commit is contained in:
parent
345d10ad82
commit
40db0243fd
1 changed files with 6 additions and 4 deletions
|
|
@ -77,9 +77,9 @@ class TorbranThaneOfRedFellEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player == null
|
||||
|| !player.hasOpponent(getControllerOrSelf(event.getTargetId(), game), game)
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller == null
|
||||
|| !controller.hasOpponent(getControllerOrSelf(event.getTargetId(), game), game)
|
||||
|| !source.isControlledBy(game.getControllerId(event.getSourceId()))) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -90,8 +90,10 @@ class TorbranThaneOfRedFellEffect extends ReplacementEffectImpl {
|
|||
} else {
|
||||
sourceObject = sourcePermanent;
|
||||
}
|
||||
|
||||
return sourceObject != null
|
||||
&& sourceObject.getColor(game).isRed();
|
||||
&& sourceObject.getColor(game).isRed()
|
||||
&& event.getAmount() > 0;
|
||||
}
|
||||
|
||||
private static UUID getControllerOrSelf(UUID id, Game game) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue