L2JMobius

The Kamael Summon's party buff invalid target

AnsS · 1 · 4987

Offline AnsS

  • Heir
  • **
    • Posts: 37
Hi all,

Note: I'm absolute beginner in L2J and Mobius.

Bug: summon (example Feline Queen) cannot use party buffs if anything is targeted (tested in town).

I managed to fix this - org.l2jmobius.gameserver.model.actor.Summon.java:

Code: [Select]
// Get the target for the skill
final WorldObject target;
if (skill.getTargetType() == TargetType.OWNER_PET)
{
target = _owner;
} else if (skill.getTargetType() == TargetType.SELF) {
target = skill.getTarget(this, forceUse, dontMove, false);
}
else

I only added another if statement - if the target type is SELF, then behave like nothing targeted so party buffs/party cure can be casted.