mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 18:29:05 +00:00
Fix Ability Issues
This commit is contained in:
1 parent
96d939ce43
commit
ab5dbc077b
4 files changed
+9
-3
No files matched your search
@@ -95,7 +95,7 @@ public class AbilityBeamDual extends Ability {
|
||||
if (beamEntity2 != null && !beamEntity2.isDead && dualFireDelay <= 0) {
|
||||
beamEntity2.startFiring(target);
|
||||
}
|
||||
} else {
|
||||
} else if (beamEntity2 != null) {
|
||||
beamEntity2.setDead();
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ public class AbilityDiscDual extends Ability {
|
||||
if (discEntity2 != null && !discEntity2.isDead && dualFireDelay <= 0) {
|
||||
discEntity2.startMoving(target);
|
||||
}
|
||||
} else {
|
||||
} else if (discEntity2 != null) {
|
||||
discEntity2.setDead();
|
||||
}
|
||||
|
||||
|
||||
@@ -107,6 +107,12 @@ public class AbilityLaserShot extends Ability implements IAbilityLaserShot {
|
||||
public void onExecute(EntityLivingBase caster, EntityLivingBase target, World world) {
|
||||
if (world.isRemote) {
|
||||
signalCompletion();
|
||||
return;
|
||||
}
|
||||
|
||||
if (laserEntity == null) {
|
||||
signalCompletion();
|
||||
return;
|
||||
}
|
||||
|
||||
laserEntity.startMoving(target);
|
||||
|
||||
@@ -94,7 +94,7 @@ public class AbilityOrbDual extends Ability {
|
||||
if (orbEntity2 != null && !orbEntity2.isDead && dualFireDelay <= 0) {
|
||||
orbEntity2.startMoving(target);
|
||||
}
|
||||
} else {
|
||||
} else if (orbEntity2 != null) {
|
||||
orbEntity2.setDead();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user