Skip to content

Commit

Permalink
Fix for make player still attacking when dont have skill active but s…
Browse files Browse the repository at this point in the history
…tay on war and have Fight target
  • Loading branch information
raydienull authored Dec 14, 2023
1 parent a5d5714 commit 4295a21
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/game/chars/CCharAct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4578,6 +4578,18 @@ bool CChar::_OnTick()
}
}
}
else if (m_pPlayer)
{
if (Skill_GetActive() == SKILL_NONE)
{
// if player are in war and have target to attack
if (IsStatFlag(STATF_WAR) && m_Fight_Targ_UID != UID_UNUSED )
{
//Start fight skill
Skill_Start(Fight_GetWeaponSkill());
}
}
}

EXC_CATCH;

Expand Down

0 comments on commit 4295a21

Please sign in to comment.