mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Merge branch 'master' of https://github.com/magefree/mage
This commit is contained in:
commit
45edd727ef
1 changed files with 4 additions and 2 deletions
|
@ -100,12 +100,14 @@ class HapatraVizierOfPoisonsTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getData().equals(CounterType.M1M1.getName())) {
|
||||
if (event.getData().equals(CounterType.M1M1.getName())
|
||||
&& controllerId.equals(game.getControllerId(event.getSourceId()))) {
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(event.getTargetId());
|
||||
if (permanent == null) {
|
||||
permanent = game.getPermanentEntering(event.getTargetId());
|
||||
}
|
||||
return (permanent != null && permanent.isCreature());
|
||||
return (permanent != null
|
||||
&& permanent.isCreature());
|
||||
}
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue