Should not apply armor set and henna bonus to summons.

This commit is contained in:
MobiusDev
2019-01-27 14:25:25 +00:00
parent dfc8d217f0
commit 0a2dbf9de3
12 changed files with 36 additions and 24 deletions

View File

@ -42,9 +42,10 @@ public class BaseStatsFinalizer implements IStatsFunction
// Apply template value
double baseValue = creature.getTemplate().getBaseValue(stat, 0);
final L2PcInstance player = creature.getActingPlayer();
if (player != null)
// Should not apply armor set and henna bonus to summons.
if (creature.isPlayer())
{
final L2PcInstance player = creature.getActingPlayer();
final Set<L2ArmorSet> appliedSets = new HashSet<>(2);
// Armor sets calculation