*Fix some bugged AI which cause creatures enter evade mode repeatedly.
*Let player enter combat when attacked but not hit by creatures. --HG-- branch : trunk
This commit is contained in:
1 parent
8fe4fc3e47
commit
03234a0657
13 files changed
+5
-28
No files matched your search
@@ -85,7 +85,6 @@ void ScriptedAI::AttackStart(Unit* who, bool melee)
|
||||
if (m_creature->Attack(who, melee))
|
||||
{
|
||||
m_creature->AddThreat(who, 0.0f);
|
||||
m_creature->SetInCombatWith(who);
|
||||
|
||||
if (!InCombat)
|
||||
{
|
||||
@@ -108,7 +107,6 @@ void ScriptedAI::AttackStart(Unit* who)
|
||||
if (m_creature->Attack(who, true))
|
||||
{
|
||||
m_creature->AddThreat(who, 0.0f);
|
||||
m_creature->SetInCombatWith(who);
|
||||
|
||||
if (!InCombat)
|
||||
{
|
||||
@@ -834,7 +832,6 @@ void Scripted_NoMovementAI::AttackStart(Unit* who)
|
||||
if (m_creature->Attack(who, true))
|
||||
{
|
||||
m_creature->AddThreat(who, 0.0f);
|
||||
m_creature->SetInCombatWith(who);
|
||||
|
||||
if (!InCombat)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user