Passive effect changes.
This commit is contained in:
@ -5703,7 +5703,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
}
|
||||
}
|
||||
// notify target AI about the attack
|
||||
if (((L2Character) target).hasAI() && !skill.hasEffectType(L2EffectType.HATE))
|
||||
if (((L2Character) target).hasAI() && !skill.hasEffectType(L2EffectType.HATE) && (skill.getAbnormalType() != AbnormalType.TURN_PASSIVE))
|
||||
{
|
||||
((L2Character) target).getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.L2Object;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.templates.L2NpcTemplate;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.util.MinionList;
|
||||
|
||||
@ -94,7 +95,7 @@ public class L2MonsterInstance extends L2Attackable
|
||||
@Override
|
||||
public boolean isAggressive()
|
||||
{
|
||||
return getTemplate().isAggressive() && !isEventMob();
|
||||
return getTemplate().isAggressive() && !isEventMob() && !isAffected(EffectFlag.PASSIVE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -32,6 +32,7 @@ public enum EffectFlag
|
||||
MUTED,
|
||||
PSYCHICAL_MUTED,
|
||||
PSYCHICAL_ATTACK_MUTED,
|
||||
PASSIVE,
|
||||
DISARMED,
|
||||
ROOTED,
|
||||
SLEEP,
|
||||
|
Reference in New Issue
Block a user