Reverted entering combat with self damage skills prohibition.
This commit is contained in:
@@ -1166,7 +1166,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
|
||||
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||
final PlayerInstance player = getActingPlayer();
|
||||
if ((player != null) && (player != target))
|
||||
if (player != null)
|
||||
{
|
||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||
player.updatePvPStatus(target);
|
||||
@@ -4397,15 +4397,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
}
|
||||
|
||||
// Start attack stance and notify being attacked.
|
||||
if ((this != target))
|
||||
if (target.hasAI())
|
||||
{
|
||||
if (target.hasAI())
|
||||
{
|
||||
target.getAI().clientStartAutoAttack();
|
||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||
}
|
||||
getAI().clientStartAutoAttack();
|
||||
target.getAI().clientStartAutoAttack();
|
||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||
}
|
||||
getAI().clientStartAutoAttack();
|
||||
|
||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||
double damage = damageValue;
|
||||
|
Reference in New Issue
Block a user