Ver código fonte

BETA: Setting isFlying to true in constructor of flying npc instances instead in onSpawn.
* Reported by: FBIagent

Rumen Nikiforov 11 anos atrás
pai
commit
0591c9104b

+ 0 - 7
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2FlyMonsterInstance.java

@@ -22,17 +22,10 @@ import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
 
 public final class L2FlyMonsterInstance extends L2MonsterInstance
 {
-	
 	public L2FlyMonsterInstance(int objectId, L2NpcTemplate template)
 	{
 		super(objectId, template);
 		setInstanceType(InstanceType.L2FlyMonsterInstance);
-	}
-	
-	@Override
-	public void onSpawn()
-	{
 		setIsFlying(true);
-		super.onSpawn();
 	}
 }

+ 0 - 7
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2FlyNpcInstance.java

@@ -22,17 +22,10 @@ import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
 
 public final class L2FlyNpcInstance extends L2NpcInstance
 {
-	
 	public L2FlyNpcInstance(int objectId, L2NpcTemplate template)
 	{
 		super(objectId, template);
 		setInstanceType(InstanceType.L2FlyNpcInstance);
-	}
-	
-	@Override
-	public void onSpawn()
-	{
 		setIsFlying(true);
-		super.onSpawn();
 	}
 }

+ 0 - 7
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2FlyRaidBossInstance.java

@@ -22,17 +22,10 @@ import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
 
 public final class L2FlyRaidBossInstance extends L2RaidBossInstance
 {
-	
 	public L2FlyRaidBossInstance(int objectId, L2NpcTemplate template)
 	{
 		super(objectId, template);
 		setInstanceType(InstanceType.L2FlyRaidBossInstance);
-	}
-	
-	@Override
-	public void onSpawn()
-	{
 		setIsFlying(true);
-		super.onSpawn();
 	}
 }

+ 0 - 7
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2FlyTerrainObjectInstance.java

@@ -24,18 +24,11 @@ import com.l2jserver.gameserver.network.serverpackets.ActionFailed;
 
 public final class L2FlyTerrainObjectInstance extends L2Npc
 {
-	
 	public L2FlyTerrainObjectInstance(int objectId, L2NpcTemplate template)
 	{
 		super(objectId, template);
 		setInstanceType(InstanceType.L2FlyTerrainObjectInstance);
-	}
-	
-	@Override
-	public void onSpawn()
-	{
 		setIsFlying(true);
-		super.onSpawn();
 	}
 	
 	@Override