Sync with L2jServer HighFive Feb 15th 2015.
This commit is contained in:
@ -32,7 +32,6 @@ import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.ai.L2SpecialSiegeGuardAI;
|
||||
import com.l2jserver.gameserver.data.sql.impl.ClanTable;
|
||||
import com.l2jserver.gameserver.data.xml.impl.NpcData;
|
||||
import com.l2jserver.gameserver.enums.SiegeClanType;
|
||||
import com.l2jserver.gameserver.model.L2Clan;
|
||||
import com.l2jserver.gameserver.model.L2ClanMember;
|
||||
@ -43,7 +42,6 @@ import com.l2jserver.gameserver.model.Location;
|
||||
import com.l2jserver.gameserver.model.TeleportWhereType;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
|
||||
import com.l2jserver.gameserver.model.entity.Siegable;
|
||||
import com.l2jserver.gameserver.model.entity.clanhall.ClanHallSiegeEngine;
|
||||
import com.l2jserver.gameserver.model.entity.clanhall.SiegeStatus;
|
||||
@ -629,20 +627,6 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
{
|
||||
try
|
||||
{
|
||||
L2NpcTemplate mahumTemplate = NpcData.getInstance().getTemplate(data.npc);
|
||||
L2NpcTemplate flagTemplate = NpcData.getInstance().getTemplate(data.flag);
|
||||
|
||||
if (flagTemplate == null)
|
||||
{
|
||||
_log.warning(getName() + ": Flag L2NpcTemplate[" + data.flag + "] does not exist!");
|
||||
throw new NullPointerException();
|
||||
}
|
||||
else if (mahumTemplate == null)
|
||||
{
|
||||
_log.warning(getName() + ": Ally L2NpcTemplate[" + data.npc + "] does not exist!");
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
int index = 0;
|
||||
if (_firstPhase)
|
||||
{
|
||||
@ -654,13 +638,13 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
}
|
||||
Location loc = FLAG_COORDS[index];
|
||||
|
||||
data.flagInstance = new L2Spawn(flagTemplate);
|
||||
data.flagInstance = new L2Spawn(data.flag);
|
||||
data.flagInstance.setLocation(loc);
|
||||
data.flagInstance.setRespawnDelay(10000);
|
||||
data.flagInstance.setAmount(1);
|
||||
data.flagInstance.init();
|
||||
|
||||
data.warrior = new L2Spawn(mahumTemplate);
|
||||
data.warrior = new L2Spawn(data.npc);
|
||||
data.warrior.setLocation(loc);
|
||||
data.warrior.setRespawnDelay(10000);
|
||||
data.warrior.setAmount(1);
|
||||
|
Reference in New Issue
Block a user