mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 14:31:30 +00:00
Unlink Tiger Claw from other monk skills for RoF2+
Tiger Claw has its own reuse now, which the client expects pTimerCombatAbility2 should be able to be used if they do something similar for other classes.
This commit is contained in:
parent
ea44b4b3b1
commit
9cbda0f81b
@ -39,7 +39,8 @@ enum { //values for pTimerType
|
|||||||
pTimerDisciplineReuseStart = 14,
|
pTimerDisciplineReuseStart = 14,
|
||||||
pTimerDisciplineReuseEnd = 24,
|
pTimerDisciplineReuseEnd = 24,
|
||||||
pTimerCombatAbility = 25,
|
pTimerCombatAbility = 25,
|
||||||
pTimerBeggingPickPocket = 26,
|
pTimerCombatAbility2 = 26, // RoF2+ Tiger Claw is unlinked from other monk skills, generic in case other classes ever need it
|
||||||
|
pTimerBeggingPickPocket = 27,
|
||||||
|
|
||||||
pTimerLayHands = 87, //these IDs are used by client too
|
pTimerLayHands = 87, //these IDs are used by client too
|
||||||
pTimerHarmTouch = 89, //so dont change them
|
pTimerHarmTouch = 89, //so dont change them
|
||||||
|
|||||||
@ -181,6 +181,11 @@ void Client::OPCombatAbility(const EQApplicationPacket *app) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
CombatAbility_Struct* ca_atk = (CombatAbility_Struct*) app->pBuffer;
|
CombatAbility_Struct* ca_atk = (CombatAbility_Struct*) app->pBuffer;
|
||||||
|
pTimerType timer = pTimerCombatAbility;
|
||||||
|
// RoF2+ Tiger Claw is unlinked from other monk skills, if they ever do that for other classes there will need
|
||||||
|
// to be more checks here
|
||||||
|
if (GetClientVersion() >= ClientVersion::RoF2 && ca_atk->m_skill == SkillTigerClaw)
|
||||||
|
timer = pTimerCombatAbility2;
|
||||||
|
|
||||||
/* Check to see if actually have skill */
|
/* Check to see if actually have skill */
|
||||||
if (!MaxSkill(static_cast<SkillUseTypes>(ca_atk->m_skill)))
|
if (!MaxSkill(static_cast<SkillUseTypes>(ca_atk->m_skill)))
|
||||||
@ -218,7 +223,7 @@ void Client::OPCombatAbility(const EQApplicationPacket *app) {
|
|||||||
if(!CombatRange(GetTarget()))
|
if(!CombatRange(GetTarget()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!p_timers.Expired(&database, pTimerCombatAbility, false)) {
|
if(!p_timers.Expired(&database, timer, false)) {
|
||||||
Message(13,"Ability recovery time not yet met.");
|
Message(13,"Ability recovery time not yet met.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -268,7 +273,7 @@ void Client::OPCombatAbility(const EQApplicationPacket *app) {
|
|||||||
DoSpecialAttackDamage(GetTarget(), SkillBash, dmg, 1, ht, ReuseTime);
|
DoSpecialAttackDamage(GetTarget(), SkillBash, dmg, 1, ht, ReuseTime);
|
||||||
if(ReuseTime > 0)
|
if(ReuseTime > 0)
|
||||||
{
|
{
|
||||||
p_timers.Start(pTimerCombatAbility, ReuseTime);
|
p_timers.Start(timer, ReuseTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -304,7 +309,7 @@ void Client::OPCombatAbility(const EQApplicationPacket *app) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(ReuseTime > 0) {
|
if(ReuseTime > 0) {
|
||||||
p_timers.Start(pTimerCombatAbility, ReuseTime);
|
p_timers.Start(timer, ReuseTime);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -390,7 +395,7 @@ void Client::OPCombatAbility(const EQApplicationPacket *app) {
|
|||||||
|
|
||||||
ReuseTime = (ReuseTime*HasteMod)/100;
|
ReuseTime = (ReuseTime*HasteMod)/100;
|
||||||
if(ReuseTime > 0){
|
if(ReuseTime > 0){
|
||||||
p_timers.Start(pTimerCombatAbility, ReuseTime);
|
p_timers.Start(timer, ReuseTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user