Summoning a servitor should not renew your own PvP flag time.

Contributed by Iris.
This commit is contained in:
MobiusDevelopment
2021-06-27 23:38:40 +00:00
parent 732cce1219
commit 31c73e9d8f
20 changed files with 60 additions and 20 deletions

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -640,7 +640,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -635,7 +635,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -640,7 +640,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -640,7 +640,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}

View File

@@ -640,7 +640,9 @@ public class SkillCaster implements Runnable
// Add hate to the attackable, and put it in the attack list.
((Attackable) obj).addDamageHate(caster, 0, -skill.getEffectPoint());
((Creature) obj).addAttackerToAttackByList(caster);
if (obj.isFakePlayer())
// Summoning a servitor should not renew your own PvP flag time.
if (obj.isFakePlayer() && (!obj.isServitor() || (obj.getObjectId() != player.getFirstServitor().getObjectId())))
{
player.updatePvPStatus();
}