mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
* Hushwing Gryff - Added a messgae to game log if he supresses a triggered effect.
This commit is contained in:
parent
357e80c7c2
commit
12a88f1a43
1 changed files with 10 additions and 0 deletions
|
@ -29,6 +29,7 @@ package mage.sets.magic2015;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
|
import mage.MageObject;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.ContinuousRuleModifiyingEffectImpl;
|
import mage.abilities.effects.ContinuousRuleModifiyingEffectImpl;
|
||||||
|
@ -89,6 +90,15 @@ class HushwingGryffEffect extends ContinuousRuleModifiyingEffectImpl {
|
||||||
super(effect);
|
super(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getInfoMessage(Ability source, GameEvent event, Game game) {
|
||||||
|
MageObject mageObject = game.getObject(event.getSourceId());
|
||||||
|
MageObject sourceObject = game.getObject(source.getSourceId());
|
||||||
|
if (mageObject != null && sourceObject != null) {
|
||||||
|
return sourceObject + " prevented ability of " + mageObject + " to trigger";
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
|
|
Loading…
Reference in a new issue