Jump to content

Recommended Posts

  • Premium

There you go

//char_battle.cpp find
	if (GetHP() <= 0)
	{
// replace Stun(); or comment it and add bellow
		if (!IsDead())
		{
			if (!IsPC() && m_pkParty)
			{
				m_pkParty->SendMessage(this, PM_ATTACKED_BY, 0, 0);
			}

			sys_log(1, "%s: Stun %p", GetName(), this);

			PointChange(POINT_HP_RECOVERY, -GetPoint(POINT_HP_RECOVERY));
			PointChange(POINT_SP_RECOVERY, -GetPoint(POINT_SP_RECOVERY));

			CloseMyShop();

			event_cancel(&m_pkRecoveryEvent); // ȸşą ŔĚşĄĆ®¸¦ Á×ŔδŮ.

			SET_BIT(m_pointsInstant.instant_flag, INSTANT_FLAG_STUN);

			if (!m_pkStunEvent)
			{
				char_event_info* info = AllocEventInfo<char_event_info>();
				info->ch = this;

				m_pkStunEvent = event_create(StunEvent, info, PASSES_PER_SEC(0));
			}
		}

#edit2

Edited by Nevisor
fixed stun bug
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.