mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
* Ondu Rising - Fixed that the attacking creatures did not get lifelink.
This commit is contained in:
parent
84757f132c
commit
5a8ca36916
4 changed files with 83 additions and 6 deletions
|
|
@ -83,12 +83,12 @@ class OnduRisingTriggeredAbility extends DelayedTriggeredAbility {
|
|||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == EventType.DECLARE_ATTACKER;
|
||||
return event.getType() == EventType.ATTACKER_DECLARED;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
Permanent permanent = game.getPermanent(event.getSourceId());
|
||||
if (permanent != null) {
|
||||
for (Effect effect : getEffects()) {
|
||||
effect.setTargetPointer(new FixedTarget(permanent, game));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue