if (equipment != null && equipment.getAttachedTo() != null) {
if (event.getSourceId().equals(equipment.getAttachedTo())) {
Permanent blocks = game.getPermanent(event.getTargetId());
if (blocks != null && blocks.hasSubtype("Vampire")) {
for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(event.getTargetId()));
}
return true;
}
return false;
}
if (event.getTargetId().equals(equipment.getAttachedTo())) {
Permanent blockedBy = game.getPermanent(event.getSourceId());
if (blockedBy != null && blockedBy.hasSubtype("Vampire")) {
for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(event.getSourceId()));
}
return true;
}
return false;
}