Make use of Aggressive/Weapon PlayerStates

I HAVE NO IDEA WHAT THIS DOES, BUT LIVE DOES IT

Something to do with the animation system, all I know
This commit is contained in:
Michael Cook (mackal)
2015-05-08 22:42:45 -04:00
parent f68952c168
commit c360aa9b0f
4 changed files with 22 additions and 2 deletions
+4
View File
@@ -1084,6 +1084,8 @@ void Mob::AI_Process() {
if (engaged)
{
if (!(m_PlayerState & static_cast<uint32>(PlayerState::Aggressive)))
SendAddPlayerState(PlayerState::Aggressive);
// we are prevented from getting here if we are blind and don't have a target in range
// from above, so no extra blind checks needed
if ((IsRooted() && !GetSpecialAbility(IGNORE_ROOT_AGGRO_RULES)) || IsBlind())
@@ -1435,6 +1437,8 @@ void Mob::AI_Process() {
}
else
{
if (m_PlayerState & static_cast<uint32>(PlayerState::Aggressive))
SendRemovePlayerState(PlayerState::Aggressive);
if(AIfeignremember_timer->Check()) {
// 6/14/06
// Improved Feign Death Memory