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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4397,15 +4397,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4397,15 +4397,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4397,15 +4397,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4397,15 +4397,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4397,15 +4397,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4397,15 +4397,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4397,15 +4397,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4396,15 +4396,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4387,15 +4387,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4387,15 +4387,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4387,15 +4387,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -1167,7 +1167,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
|
|
||||||
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4400,15 +4400,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -1167,7 +1167,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
|
|
||||||
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4400,15 +4400,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -1167,7 +1167,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
|
|
||||||
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4399,15 +4399,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
@@ -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
|
// Flag the attacker if it's a PlayerInstance outside a PvP area
|
||||||
final PlayerInstance player = getActingPlayer();
|
final PlayerInstance player = getActingPlayer();
|
||||||
if ((player != null) && (player != target))
|
if (player != null)
|
||||||
{
|
{
|
||||||
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
|
||||||
player.updatePvPStatus(target);
|
player.updatePvPStatus(target);
|
||||||
@@ -4387,15 +4387,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start attack stance and notify being attacked.
|
// Start attack stance and notify being attacked.
|
||||||
if ((this != target))
|
|
||||||
{
|
|
||||||
if (target.hasAI())
|
if (target.hasAI())
|
||||||
{
|
{
|
||||||
target.getAI().clientStartAutoAttack();
|
target.getAI().clientStartAutoAttack();
|
||||||
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);
|
||||||
}
|
}
|
||||||
getAI().clientStartAutoAttack();
|
getAI().clientStartAutoAttack();
|
||||||
}
|
|
||||||
|
|
||||||
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
// ImmobileDamageBonus and ImmobileDamageResist effect bonuses.
|
||||||
double damage = damageValue;
|
double damage = damageValue;
|
||||||
|
Reference in New Issue
Block a user