Jump to content
  • Register Now

    Sign up and take advantage of the features of our community! Some forums are only accessible to our members!

Skill cooltime tooltip fix

Recommended Posts

  • VIP

When hovering over a skill, it's recharge duration in tooltip is always the same because it ignores player's casting speed.


In PythonSkill.cpp search for :

DWORD CPythonSkill::SSkillData::GetSkillCoolTime(float fSkillPoint)

Replace with:

DWORD CPythonSkill::SSkillData::GetSkillCoolTime(float fSkillPoint)
	if (strCoolTimeFormula.empty())
		return 0;

	CPoly poly;

		Apply casting speed when calculating the formula
	int iCastingSpeed = CPythonPlayer::Instance().GetStatus(POINT_CASTING_SPEED);
	int iSkillCoolTime = ProcessFormula(&poly, fSkillPoint);

	int i = 100 - iCastingSpeed;

	if (i > 0)
		i = 100 + i;
	else if (i < 0)
		i = 10000 / (100 - i);
		i = 100;

	return DWORD(iSkillCoolTime * i / 100);


  • Love 7
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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.