|
@@ -664,8 +664,8 @@ public class L2Attackable extends L2Npc
|
|
|
|
|
|
// Penalty applied to the attacker's XP
|
|
|
penalty = 0;
|
|
|
- // If this attacker is a L2PcInstance with a summoned L2ServitorInstance, get Exp Penalty applied for the current summoned L2SummonInstance
|
|
|
- if (attacker.isPlayer() && attacker.hasSummon() && attacker.getSummon().isServitor())
|
|
|
+ // If this attacker is a player with a servitor, get Exp Penalty applied for the servitor.
|
|
|
+ if (attacker.isPlayer() && attacker.hasServitor())
|
|
|
{
|
|
|
penalty = ((L2ServitorInstance) attacker.getSummon()).getExpPenalty();
|
|
|
}
|
|
@@ -682,7 +682,7 @@ public class L2Attackable extends L2Npc
|
|
|
// Calculate Exp and SP rewards
|
|
|
if (attacker.getKnownList().knowsObject(this))
|
|
|
{
|
|
|
- // Calculate the difference of level between this attacker (L2PcInstance or L2ServitorInstance owner) and the L2Attackable
|
|
|
+ // Calculate the difference of level between this attacker (player or servitor owner) and the L2Attackable
|
|
|
// mob = 24, atk = 10, diff = -14 (full xp)
|
|
|
// mob = 24, atk = 28, diff = 4 (some xp)
|
|
|
// mob = 24, atk = 50, diff = 26 (no xp)
|
|
@@ -799,7 +799,7 @@ public class L2Attackable extends L2Npc
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (pl.hasSummon() && pl.getSummon().isPet())
|
|
|
+ if (pl.hasPet())
|
|
|
{
|
|
|
final L2Summon summon = pl.getSummon();
|
|
|
reward2 = rewards.get(summon);
|