Acesta este un FIX pentur un bug comun pe Metin2.
Daca ai un skill toggle activ (Exemplu: Tais Vrajit / Camuflaj / Flacara / etc.), iar cineva te omoara vei observa ca toggle ramane activ pe skill, iar clientul nu actualizeaza statusul acestui skill ca sa il dezactiveze corect.
*Poze / Video:
BUG:
Rezultat dupa FIX:![[FIX] Toggle Skill when Dead - Mesaj 1 - Imagine 1 [FIX] Toggle Skill when Dead - Mesaj 1 - Imagine 1](https://i.imgur.com/wb0RPvh.gif)
Rezultat dupa FIX:
![[FIX] Toggle Skill when Dead - Mesaj 1 - Imagine 1 [FIX] Toggle Skill when Dead - Mesaj 1 - Imagine 1](https://i.imgur.com/wb0RPvh.gif)
*Link download / Code:
Deschidem UserInterface/PythonPlayerModule.cpp si cautam:
Code:
{ "ClearSkillDict", playerClearSkillDict, METH_VARARGS },Adaugam sub:
Mai jos vom gasi:
Code:
PyObject * playerClearSkillDict(PyObject * poSelf, PyObject * poArgs)Deschidem UserInterface/PythonPlayer.cpp si cautam:
Code:
void CPythonPlayer::ClearSkillDict()Deschidem acum UserInterface/PythonPlayer.h si cautam:
Code:
void ClearSkillDict();Deschidem UserInterface/PythonPlayerSkill.cpp si cautam:
Code:
void CPythonPlayer::ClickSkillSlot(DWORD dwSlotIndex)Code:
if (pSkillData->IsStandingSkill())
{
if (pSkillData->IsToggleSkill())
{
if (IsSkillActive(dwSlotIndex))
{
CInstanceBase * pkInstMain = NEW_GetMainActorPtr();
if (!pkInstMain)
return;
if (pkInstMain->IsUsingSkill())
return;Deschidem UserInterface/PythonPlayer.cpp si cautam:
Code:
void CPythonPlayer::NotifyDeadMainCharacter()

la acest mesaj și conținutul se va afișa automat.

