chc? zmieni? axe fighting na speed attack wi?c napisa?em co? takiego
niestety nie dzia?a tak jak chcia?em mianowicie ca?y czas atakuje z maksymaln? pr?dko?ci? mimo ze mam skilla 1 a w vocation speed 2000
prosz? o pomoc
Code:
uint32_t Player::getAttackSpeed()
{
Item* weapon = getWeapon();
if(weapon && weapon->getAttackSpeed() != 0)
return weapon->getAttackSpeed();
if (vocation->getAttackSpeed() - (getSkill(SKILL_AXE, SKILL_LEVEL)*10) << 1){
return 1;} else
{return vocation->getAttackSpeed() - (getSkill(SKILL_AXE, SKILL_LEVEL)*10);};
}
prosz? o pomoc