[Skills] RoF+ allows other classes to have feign death if set in skill_caps (#1902)

This commit is contained in:
Natedog2012 2021-12-29 10:17:31 -06:00 committed by GitHub
parent 323b35989c
commit e45f02af95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5894,8 +5894,10 @@ void Client::Handle_OP_FaceChange(const EQApplicationPacket *app)
void Client::Handle_OP_FeignDeath(const EQApplicationPacket *app) void Client::Handle_OP_FeignDeath(const EQApplicationPacket *app)
{ {
if (GetClass() != MONK) if (!HasSkill(EQ::skills::SkillFeignDeath)) {
return; return;
}
if (!p_timers.Expired(&database, pTimerFeignDeath, false)) { if (!p_timers.Expired(&database, pTimerFeignDeath, false)) {
Message(Chat::Red, "Ability recovery time not yet met."); Message(Chat::Red, "Ability recovery time not yet met.");
return; return;