mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 16:54:30 +00:00
Fix Built In Animation
This commit is contained in:
1 parent
e73054a529
commit
c339e5edbc
11 files changed
+205
-73
No files matched your search
@@ -122,12 +122,8 @@ public class AbilityDisc extends Ability implements IAbilityDisc {
|
||||
discEntity.startMoving(target);
|
||||
}
|
||||
|
||||
// If movement is locked during active phase, keep ability active until entity dies
|
||||
// Otherwise signal completion immediately
|
||||
if (!lockMovement.locksActive()) {
|
||||
discEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
// Ability stays active until entity dies (prevents firing another while projectile is alive)
|
||||
// Movement locking is handled separately by the base class
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -157,8 +153,8 @@ public class AbilityDisc extends Ability implements IAbilityDisc {
|
||||
|
||||
@Override
|
||||
public void onActiveTick(EntityNPCInterface npc, EntityLivingBase target, World world, int tick) {
|
||||
// If we're tracking the entity for movement lock, check if it's dead
|
||||
if (discEntity != null && discEntity.isDead) {
|
||||
// Signal completion when entity dies
|
||||
if (discEntity == null || discEntity.isDead) {
|
||||
discEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
|
||||
@@ -123,12 +123,8 @@ public class AbilityEnergyBeam extends Ability implements IAbilityEnergyBeam {
|
||||
beamEntity.startFiring(target);
|
||||
}
|
||||
|
||||
// If movement is locked during active phase, keep ability active until entity dies
|
||||
// Otherwise signal completion immediately
|
||||
if (!lockMovement.locksActive()) {
|
||||
beamEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
// Ability stays active until entity dies (prevents firing another while projectile is alive)
|
||||
// Movement locking is handled separately by the base class
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -161,8 +157,8 @@ public class AbilityEnergyBeam extends Ability implements IAbilityEnergyBeam {
|
||||
|
||||
@Override
|
||||
public void onActiveTick(EntityNPCInterface npc, EntityLivingBase target, World world, int tick) {
|
||||
// If we're tracking the entity for movement lock, check if it's dead
|
||||
if (beamEntity != null && beamEntity.isDead) {
|
||||
// Signal completion when entity dies
|
||||
if (beamEntity == null || beamEntity.isDead) {
|
||||
beamEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
|
||||
@@ -128,18 +128,14 @@ public class AbilityLaserShot extends Ability implements IAbilityLaserShot {
|
||||
|
||||
world.spawnEntityInWorld(laserEntity);
|
||||
|
||||
// If movement is locked during active phase, keep ability active until entity dies
|
||||
// Otherwise signal completion immediately
|
||||
if (!lockMovement.locksActive()) {
|
||||
laserEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
// Ability stays active until entity dies (prevents firing another while projectile is alive)
|
||||
// Movement locking is handled separately by the base class
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActiveTick(EntityNPCInterface npc, EntityLivingBase target, World world, int tick) {
|
||||
// If we're tracking the entity for movement lock, check if it's dead
|
||||
if (laserEntity != null && laserEntity.isDead) {
|
||||
// Signal completion when entity dies
|
||||
if (laserEntity == null || laserEntity.isDead) {
|
||||
laserEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
|
||||
@@ -121,12 +121,8 @@ public class AbilityOrb extends Ability implements IAbilityOrb {
|
||||
orbEntity.startMoving(target);
|
||||
}
|
||||
|
||||
// If movement is locked during active phase, keep ability active until entity dies
|
||||
// Otherwise signal completion immediately
|
||||
if (!lockMovement.locksActive()) {
|
||||
orbEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
// Ability stays active until entity dies (prevents firing another while projectile is alive)
|
||||
// Movement locking is handled separately by the base class
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -155,8 +151,8 @@ public class AbilityOrb extends Ability implements IAbilityOrb {
|
||||
|
||||
@Override
|
||||
public void onActiveTick(EntityNPCInterface npc, EntityLivingBase target, World world, int tick) {
|
||||
// If we're tracking the entity for movement lock, check if it's dead
|
||||
if (orbEntity != null && orbEntity.isDead) {
|
||||
// Signal completion when entity dies
|
||||
if (orbEntity == null || orbEntity.isDead) {
|
||||
orbEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
|
||||
@@ -100,18 +100,14 @@ public class AbilitySweeper extends Ability implements IAbilitySweeper {
|
||||
lockOnTarget);
|
||||
world.spawnEntityInWorld(activeEntity);
|
||||
|
||||
// If movement is locked during active phase, keep ability active until entity dies
|
||||
// Otherwise signal completion immediately
|
||||
if (!lockMovement.locksActive()) {
|
||||
activeEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
// Ability stays active until entity dies (prevents firing another while projectile is alive)
|
||||
// Movement locking is handled separately by the base class
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActiveTick(EntityNPCInterface npc, EntityLivingBase target, World world, int tick) {
|
||||
// If we're tracking the entity for movement lock, check if it's dead
|
||||
if (activeEntity != null && activeEntity.isDead) {
|
||||
// Signal completion when entity dies
|
||||
if (activeEntity == null || activeEntity.isDead) {
|
||||
activeEntity = null;
|
||||
signalCompletion();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user