garbagemule / MobArena

MobArena plugin for Minecraft
GNU General Public License v3.0
189 stars 150 forks source link

Exploding Sheep can Damage mobs even if monster-infight is set to false #758

Closed fireheart3911 closed 1 year ago

fireheart3911 commented 1 year ago

Bug report

Short description

Exploding Sheep can Damage mobs even if monster-infight is set to false

Reproduction steps

  1. Set monster-infight to false
  2. Stand next to an exploding sheep
  3. The Sheep damages other mobs

Details

Additional info

garbagemule commented 1 year ago

Thanks for the bug report!

It might be possible to change the method in the sheep explosion logic to a different method that has an Entity source, which will make the entity damage by entity logic run (if we're lucky), so that the damager is handled like an arena monster, in which case it would just be handled like any other monster-to-monster damage.

If I make that little change and threw it up on Discord, would you be interested in testing it out?