mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
* Kira, Great Glass-Spinner - Some fixes to the triggered ability that controlled creatures gain.
This commit is contained in:
parent
c024318489
commit
1868631a96
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ class KiraGreatGlassSpinnerAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getTargetId().equals(this.getSourceId())) {
|
||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
if (permanent.getCardType().contains(CardType.CREATURE)) {
|
||||
if (permanent != null && permanent.getCardType().contains(CardType.CREATURE)) {
|
||||
CreatureWasTargetedThisTurnWatcher watcher = (CreatureWasTargetedThisTurnWatcher) game.getState().getWatchers().get("CreatureWasTargetedThisTurn");
|
||||
if (watcher != null && watcher.notMoreThanOnceTargetedThisTurn(permanent, game)) {
|
||||
for (Effect effect : getEffects()) {
|
||||
|
@ -149,7 +149,7 @@ class CreatureWasTargetedThisTurnWatcher extends Watcher {
|
|||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.TARGETED) {
|
||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
if (permanent.getCardType().contains(CardType.CREATURE)) {
|
||||
if (permanent != null && permanent.getCardType().contains(CardType.CREATURE)) {
|
||||
MageObjectReference mor = new MageObjectReference(permanent, game);
|
||||
int amount = 0;
|
||||
if (creaturesTargeted.containsKey(mor)) {
|
||||
|
|
Loading…
Reference in a new issue