Techguns Compat
yeelp opened this issue ยท 0 comments
Techguns cancels LivingAttackEvent which messes up DDD. This could be fixed, but may have unintended consequences.
- If Techguns is present, register a handler that listens to
LivingAttackEvent
at highest priority. We want to check if the event was already canceled in this phase. Set a flag if not canceled. - register another handler for the same event at regular priority while also receiving canceled events.
- If we can confirm that the event was canceled by Techguns by following the same logic it uses and wasn't canceled earlier at highest priority, uncancel the event. See here: https://github.com/pWn3d1337/Techguns2/blob/master/src/main/java/techguns/events/TGEventHandler.java#L345
May have to do a similar thing to LivingHurtEvent since TG does a similar thing to that event as well.
Uncanceling the event may mess with how TG does damage calcs.