Simplified PartyPledge affect scope logic.
This commit is contained in:
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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))
|
||||||
|
@@ -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