Curse of Bloodletting: remove damage source filtering

This commit is contained in:
Sergey 2013-12-08 23:06:18 +04:00
parent 7b584e17bf
commit 5cb2823e3d

View file

@ -97,14 +97,11 @@ class CurseOfBloodlettingEffect extends ReplacementEffectImpl<CurseOfBloodlettin
public boolean applies(GameEvent event, Ability source, Game game) {
switch (event.getType()) {
case DAMAGE_PLAYER:
StackObject spell = game.getStack().getStackObject(event.getSourceId());
if (spell != null) {
Permanent enchantment = game.getPermanent(source.getSourceId());
if (enchantment != null && enchantment.getAttachedTo() != null) {
Player player = game.getPlayer(enchantment.getAttachedTo());
if (player != null && event.getTargetId().equals(player.getId())) {
event.setAmount(event.getAmount() * 2);
}
Permanent enchantment = game.getPermanent(source.getSourceId());
if (enchantment != null && enchantment.getAttachedTo() != null) {
Player player = game.getPlayer(enchantment.getAttachedTo());
if (player != null && event.getTargetId().equals(player.getId())) {
event.setAmount(event.getAmount() * 2);
}
}
}