[WOE] Implement Sharae of Numbing Depths (#10829)

* [WOE] Implement Sharae of Numbing Depths

* change EventType.TAPPED's playerId to be the source's controller

There seems to have been no usage of the previous playerId, and it can be retrieve from the target anyway.

* apply review -- cleaner and check for creatures.
This commit is contained in:
Susucre 2023-08-17 01:07:07 +02:00 committed by GitHub
parent 13151feb0b
commit 8fde855026
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 92 additions and 2 deletions

View file

@ -559,7 +559,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
//20091005 - 701.15a
if (!tapped && !replaceEvent(EventType.TAP, game)) {
this.tapped = true;
game.fireEvent(new GameEvent(GameEvent.EventType.TAPPED, objectId, source, controllerId, 0, forCombat));
game.fireEvent(new GameEvent(GameEvent.EventType.TAPPED, objectId, source, source == null ? null : source.getControllerId(), 0, forCombat));
return true;
}
return false;