mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
Curse of Bloodletting: remove damage source filtering
This commit is contained in:
parent
7b584e17bf
commit
5cb2823e3d
1 changed files with 5 additions and 8 deletions
|
@ -97,14 +97,11 @@ class CurseOfBloodlettingEffect extends ReplacementEffectImpl<CurseOfBloodlettin
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
switch (event.getType()) {
|
switch (event.getType()) {
|
||||||
case DAMAGE_PLAYER:
|
case DAMAGE_PLAYER:
|
||||||
StackObject spell = game.getStack().getStackObject(event.getSourceId());
|
Permanent enchantment = game.getPermanent(source.getSourceId());
|
||||||
if (spell != null) {
|
if (enchantment != null && enchantment.getAttachedTo() != null) {
|
||||||
Permanent enchantment = game.getPermanent(source.getSourceId());
|
Player player = game.getPlayer(enchantment.getAttachedTo());
|
||||||
if (enchantment != null && enchantment.getAttachedTo() != null) {
|
if (player != null && event.getTargetId().equals(player.getId())) {
|
||||||
Player player = game.getPlayer(enchantment.getAttachedTo());
|
event.setAmount(event.getAmount() * 2);
|
||||||
if (player != null && event.getTargetId().equals(player.getId())) {
|
|
||||||
event.setAmount(event.getAmount() * 2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue