Use boss entity as source for obsidian bomb.

Makes the boss entity the source of the obsidian bomb explosion, which
then makes the damage event listener handle the explosion damage as if
the boss is the damager, which means the `monster-infight` flag should
be respected.

Fixes #759
This commit is contained in:
Andreas Troelsen
2023-05-07 11:29:36 +02:00
parent 2eb1761e76
commit 4f78936716
2 changed files with 2 additions and 1 deletions
@@ -55,7 +55,7 @@ public class ObsidianBomb implements Ability
return;
world.getBlockAt(loc).setType(Material.AIR);
world.createExplosion(loc, 3F);
world.createExplosion(loc, 3F, false, true, boss.getEntity());
}
}, FUSE);
}