Simplified PartyPledge affect scope logic.
This commit is contained in:
Vendored
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
Vendored
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/targethandlers/affectscope/PartyPledge.java
Vendored
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
Vendored
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
+2
-7
@@ -67,14 +67,9 @@ public class PartyPledge implements IAffectScopeHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p != player)
|
if ((p.getClanId() != clanId) && ((party == null) || (party != p.getParty())))
|
||||||
{
|
{
|
||||||
final Party pParty = p.getParty();
|
return false;
|
||||||
final int pClanId = p.getClanId();
|
|
||||||
if ((pParty == null) || ((clanId != pClanId) && (party != pParty)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
if ((affectObject != null) && !affectObject.checkAffectedObject(creature, p))
|
||||||
|
|||||||
Reference in New Issue
Block a user