mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 07:19:05 +00:00
Simplify ability interrupt logic and reorganize GUI
- Remove interruptThreshold field entirely - interrupts now based on damage source type - Update canInterrupt() to only allow interrupts from direct physical hits (not magic/fire/explosions) - Interruption only occurs during WINDUP phase, not ACTIVE - Reorganize SubGuiAbilityConfig into 4 tabs: General, Type, Target, Effects - Increase GUI size to 420x216 for better layout
This commit is contained in:
3 files changed
+314
-286
No files matched your search
@@ -442,7 +442,7 @@ public class DataAbilities {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (currentAbility.canInterrupt(amount)) {
|
||||
if (currentAbility.canInterrupt(source)) {
|
||||
interruptCurrentAbility(source, amount);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user