mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
* Fixed a problem with Licid creatures not dying if the enchanted creature dies.
This commit is contained in:
parent
f0bd9a58d4
commit
7f0d793544
3 changed files with 16 additions and 15 deletions
|
|
@ -169,6 +169,7 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DESTROYED_PERMANENT:
|
||||
if (isLeavesTheBattlefieldTrigger()) {
|
||||
if (event.getType() == EventType.DESTROYED_PERMANENT) {
|
||||
|
|
@ -179,12 +180,13 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
source = game.getLastKnownInformation(getSourceId(), event.getZone());
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case PHASED_OUT:
|
||||
case PHASED_IN:
|
||||
if (this.zone == Zone.ALL || game.getLastKnownInformation(getSourceId(), zone) != null) {
|
||||
return this.hasSourceObjectAbility(game, source, event);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.isInUseableZone(game, source, event);
|
||||
|
|
|
|||
|
|
@ -1918,8 +1918,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
if (perm.hasSubtype(SubType.AURA, this)) {
|
||||
//20091005 - 704.5n, 702.14c
|
||||
if (perm.getAttachedTo() == null) {
|
||||
Card card = this.getCard(perm.getId());
|
||||
if (card != null && !card.isCreature()) { // no bestow creature
|
||||
if (!perm.isCreature() && !perm.getAbilities(this).containsClass(BestowAbility.class)) {
|
||||
if (movePermanentToGraveyardWithInfo(perm)) {
|
||||
somethingHappened = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue