Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void spawnSiegeGuard()
- {
- try
- {
- int hiredCount = 0;
- boolean isHired = (_castleOwnerId > 0);
- if (Config.SPAWN_SIEGE_GUARD)
- {
- loadSiegeGuard();
- for (L2Spawn spawn : getSiegeGuardSpawn())
- {
- if (spawn != null)
- {
- spawn.init();
- if (isHired)
- {
- if (++hiredCount > MercTicketManager.getInstance().getMaxAllowedMerc(_castleId))
- return;
- if (hiredCount > Config.MAX_GUARD_COUNT_FOR_CASTLE)
- return;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement