OK seems to work more correct now i think, the reel problem is a code, if (!m_owner.AttackState)
one part of code make this possible only if target is not null
- Code: Select all
if (target == null)
{
player.Out.SendMessage("Vous ne pouvez engager qu'une cible hostile envers vous.", eChatType.CT_System, eChatLoc.CL_SystemWindow);
return;
}
Another part make it impossible if you're not in attack mode
- Code: Select all
if (!m_owner.AttackState)
{
m_owner. StartAttack(m_engageTarget);
if (m_owner is GamePlayer)
(m_owner as GamePlayer).Out.SendAttackMode(true);
etc..
}
and another make it impossible within a timer of 5 sec (if you have make one or two taunt on the mob)
It's verry difficult to make this possible by this way because generally tank taunt before engage, after they can't engage ... because :
if he attack --> timer
if don't attack (wait timer end for exemple) --> not in attackstat and can't engage
if they make player in attackstate with no mob selected --> can't engage
if selecte a mob after make it in attackstate, there's just a short period before the first hit for engage. (i have tested, verry hard
with the patch, all works fine i think.