Self casting should not increase PvP time.

This commit is contained in:
MobiusDev 2019-01-25 03:11:41 +00:00
parent d8129e0362
commit f27e223be9
10 changed files with 50 additions and 10 deletions

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->

View File

@ -652,11 +652,15 @@ public class SkillCaster implements Runnable
|| (obj.isFakePlayer() // || (obj.isFakePlayer() //
&& (!((L2Npc) obj).isScriptValue(0) // && (!((L2Npc) obj).isScriptValue(0) //
|| (((L2Npc) obj).getReputation() < 0)))) || (((L2Npc) obj).getReputation() < 0))))
{
// Self casting should not increase PvP time.
if (obj != player)
{ {
player.updatePvPStatus(); player.updatePvPStatus();
} }
} }
} }
}
// Mobs in range 1000 see spell // Mobs in range 1000 see spell
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob -> L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->