* Saskia the Unyielding - Fixed that the damage source of the triggered ability was not the combat damage causing creature.

This commit is contained in:
LevelX2 2016-12-11 22:58:35 +01:00
parent 4b4aef8ed5
commit 7c7cebc048
2 changed files with 4 additions and 2 deletions

View file

@ -107,8 +107,9 @@ class SaskiaTheUnyieldingEffect extends OneShotEffect {
Player player = game.getPlayer(playerId);
if (player != null && player.canRespond()) {
Integer damage = (Integer) this.getValue("damage");
if (damage > 0) {
player.damage(damage, source.getSourceId(), game, false, true);
UUID sourceId = (UUID) this.getValue("sourceId");
if (sourceId != null && damage > 0) {
player.damage(damage, sourceId, game, false, true);
}
}
return true;