Raid Death behavior

This commit is contained in:
Aubri Seebauer committed 2023-04-03 15:23:42 -04:00
1 parent e65bae6f67
commit d6e5518c1e
4 files changed
+184 -24

No files matched your search

@@ -292,12 +292,15 @@ public class RaidCommands implements CommandExecutor
//if we find the raid
if(raidFound) {
if(raid.getPhase() == RaidPhase.GATHER) {
//check if gather phase
if(raid.getPhase() == RaidPhase.GATHER || raid.getPhase() == RaidPhase.START) {
if(raid.getGatherTown().hasTownBlock(WorldCoord.parseWorldCoord(p))) {
raid.addActiveRaider(p.getName());
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "You have joined the raid on " + raid.getRaidedTown().getName() + "!");
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "Leaving " + raid.getGatherTown().getName() + " will cause you to leave the raid party.");
}
} else {
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "You cannot join the raid on " + raid.getRaidedTown().getName() + "! It has already started!");
}
}
}