mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-14 06:14:52 +00:00
Refactor to Cleaner Class Setup
This commit is contained in:
1 parent
55658a7956
commit
38c0519c0a
18 files changed
+874
-1213
No files matched your search
@@ -1934,6 +1934,13 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
if (NPCMountUtil.isFlyingMountWithFlightEnabled(this)) {
|
||||
return;
|
||||
}
|
||||
// Skip fall damage during abilities that control NPC movement (e.g., Slam leap)
|
||||
if (this.abilities != null && this.abilities.isExecutingAbility()
|
||||
&& this.abilities.getCurrentAbility() != null
|
||||
&& this.abilities.getCurrentAbility().hasAbilityMovement()) {
|
||||
this.fallDistance = 0;
|
||||
return;
|
||||
}
|
||||
if (!this.stats.noFallDamage)
|
||||
super.fall(distance);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user