Browse Source

Add attacker into target attacklist before attack event notification.
Plus: now players can't use non-damage skills for luring mobs.
Minus: skill "Lure" broken too :)

Please remember what during server start mobs spawn all in once and their knownlist is empty. So first time after start mobs will not use faction calls.
For bosses IMHO we will need to add minions into knownlist manually.

_DS_ 15 years ago
parent
commit
a36b2c293b

+ 2 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/L2Character.java

@@ -6544,6 +6544,8 @@ public abstract class L2Character extends L2Object
 										&& skill.getSkillType() != L2SkillType.AGGREDUCE_CHAR
 										&& skill.getSkillType() != L2SkillType.AGGREMOVE)
 								{
+									// add attacker into list
+									((L2Character)target).addAttackerToAttackByList(player);
 									// notify target AI about the attack
 									((L2Character)target).getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, player);
 								}