Should not apply armor set and henna bonus to summons.
This commit is contained in:
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -53,9 +53,10 @@ public class FuncArmorSet extends AbstractFunction
|
|||||||
public double calc(L2Character effector, L2Character effected, Skill skill, double initVal)
|
public double calc(L2Character effector, L2Character effected, Skill skill, double initVal)
|
||||||
{
|
{
|
||||||
double value = initVal;
|
double value = initVal;
|
||||||
final L2PcInstance player = effector.getActingPlayer();
|
// Should not apply armor set bonus to summons.
|
||||||
if (player != null)
|
if (effector.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = effector.getActingPlayer();
|
||||||
final L2ItemInstance chest = player.getChestArmorInstance();
|
final L2ItemInstance chest = player.getChestArmorInstance();
|
||||||
if (chest != null)
|
if (chest != null)
|
||||||
{
|
{
|
||||||
|
@@ -49,10 +49,11 @@ public class FuncHenna extends AbstractFunction
|
|||||||
@Override
|
@Override
|
||||||
public double calc(L2Character effector, L2Character effected, Skill skill, double initVal)
|
public double calc(L2Character effector, L2Character effected, Skill skill, double initVal)
|
||||||
{
|
{
|
||||||
final L2PcInstance pc = effector.getActingPlayer();
|
|
||||||
double value = initVal;
|
double value = initVal;
|
||||||
if (pc != null)
|
// Should not apply henna bonus to summons.
|
||||||
|
if (effector.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance pc = effector.getActingPlayer();
|
||||||
switch (getStat())
|
switch (getStat())
|
||||||
{
|
{
|
||||||
case STAT_STR:
|
case STAT_STR:
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
@@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
|
|||||||
// Apply template value
|
// Apply template value
|
||||||
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
|
||||||
|
|
||||||
final L2PcInstance player = creature.getActingPlayer();
|
// Should not apply armor set and henna bonus to summons.
|
||||||
if (player != null)
|
if (creature.isPlayer())
|
||||||
{
|
{
|
||||||
|
final L2PcInstance player = creature.getActingPlayer();
|
||||||
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
|
||||||
|
|
||||||
// Armor sets calculation
|
// Armor sets calculation
|
||||||
|
Reference in New Issue
Block a user