Fix Spawn when Summoner Dies and not Respawnable

This commit is contained in:
Kam committed 2024-02-20 00:50:07 -05:00
1 parent e044889b33
commit 32aca44443
1 file changed
+18 -2
@@ -321,9 +321,25 @@ public class JobSpawner extends JobInterface{
target = null;
checkSpawns();
}
@Override
@Override
public void delete() {
if(spawnType == 3 && npc.stats.spawnCycle == 3){
spawnEntity(compound1);
spawnEntity(compound2);
spawnEntity(compound3);
spawnEntity(compound4);
spawnEntity(compound5);
spawnEntity(compound6);
number = 6;
}
reset();
}
@Override
public void killed() {
if(spawnType == 3){
if(spawnType == 3 && npc.stats.spawnCycle != 3){
spawnEntity(compound1);
spawnEntity(compound2);
spawnEntity(compound3);