mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 21:09:40 +00:00
Fix Burst Refiring
This commit is contained in:
1 parent
f03d93d6a8
commit
f8c75dd79b
1 file changed
+5
-2
+5
-2
@@ -256,8 +256,11 @@ public abstract class AbstractEnergyProjectileAbility<E extends EntityAbilityPro
|
||||
|
||||
@Override
|
||||
public void onExecute(EntityLivingBase caster, EntityLivingBase target) {
|
||||
// Burst refire: entities not created during windup (it was skipped)
|
||||
if (entities == null) {
|
||||
// Create fresh entities if needed:
|
||||
// - entities == null: windup was skipped (burst without replay animations)
|
||||
// - isBurstRefire(): burst overlap mode kept old (stale) entities alive,
|
||||
// so we must create new ones for each burst iteration
|
||||
if (entities == null || isBurstRefire()) {
|
||||
entities = createAllEntities(caster, target);
|
||||
for (E entity : entities) {
|
||||
spawnAbilityEntity(entity);
|
||||
|
||||
Reference in new issue
Block a user