mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
- Fixed Hapatra, Vizier of Poisons. Bug #3157
This commit is contained in:
parent
e2bd06eb4a
commit
9e1acd5daa
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