mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-18 14:10:18 -04:00
* Update AiReaction enum.
--HG-- branch : trunk
This commit is contained in:
@@ -2485,10 +2485,10 @@ enum PetDiet
|
||||
|
||||
enum AiReaction
|
||||
{
|
||||
AI_REACTION_UNK1 = 1,
|
||||
AI_REACTION_AGGRO = 2, // trigger aggro sound to play, if defined in dbc
|
||||
AI_REACTION_UNK3 = 3, // seen happen at polymorph, possible when AI not in control of self?
|
||||
AI_REACTION_UNK4 = 4
|
||||
AI_REACTION_ALERT = 0,
|
||||
AI_REACTION_FRIENDLY = 1,
|
||||
AI_REACTION_HOSTILE = 2, // only currently existing reaction
|
||||
AI_REACTION_AFRAID = 3
|
||||
};
|
||||
|
||||
// Diminishing Returns Types
|
||||
|
||||
+2
-2
@@ -8990,7 +8990,7 @@ bool Unit::Attack(Unit *victim, bool meleeAttack)
|
||||
victim->SetInCombatWith(this);
|
||||
AddThreat(victim, 0.0f);
|
||||
|
||||
this->ToCreature()->SendAIReaction(AI_REACTION_AGGRO);
|
||||
this->ToCreature()->SendAIReaction(AI_REACTION_HOSTILE);
|
||||
this->ToCreature()->CallAssistance();
|
||||
}
|
||||
|
||||
@@ -13895,7 +13895,7 @@ void Unit::SendPetAIReaction(uint64 guid)
|
||||
|
||||
WorldPacket data(SMSG_AI_REACTION, 8 + 4);
|
||||
data << uint64(guid);
|
||||
data << uint32(AI_REACTION_AGGRO);
|
||||
data << uint32(AI_REACTION_HOSTILE);
|
||||
owner->ToPlayer()->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user