mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-22 10:36:00 +01:00
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:
parent
2eb1761e76
commit
4f78936716
@ -13,6 +13,7 @@ These changes will (most likely) be included in the next version.
|
||||
## [Unreleased]
|
||||
### Fixed
|
||||
- Explosion damage caused by Exploding Sheep now correctly counts as monster damage. This means that the explosions only affect other mobs if the per-arena setting `monster-infight` is set to `true`.
|
||||
- Explosion damage caused by the boss ability `obsidian-bomb` now correctly counts as monster damage. This means that the explosions only affect other mobs if the per-arena setting `monster-infight` is set to `true`.
|
||||
|
||||
## [0.107] - 2022-07-30
|
||||
### Added
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user