[Bug Fix] Harm Touch Critical Ratio (#3915)

* [Bug] HT Crit Ratio

This is used to tune and bring HT Crits more in line with the correct values as proven in screenshots.

* requested changes

* mistakenly kept mob::
This commit is contained in:
Fryguy
2024-01-08 23:27:56 -05:00
committed by GitHub
parent ec465616b4
commit e6dc980315
5 changed files with 19 additions and 12 deletions
+5 -10
View File
@@ -2799,15 +2799,11 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, in
{
CastToClient()->GetPTimers().Start(casting_spell_timer, casting_spell_timer_duration);
LogSpells("Spell [{}]: Setting custom reuse timer [{}] to [{}]", spell_id, casting_spell_timer, casting_spell_timer_duration);
}
else if(spells[spell_id].recast_time > 1000 && !spells[spell_id].is_discipline) {
} else if (spells[spell_id].recast_time > 1000 && !spells[spell_id].is_discipline) {
int recast = spells[spell_id].recast_time/1000;
if (spell_id == SPELL_LAY_ON_HANDS) //lay on hands
{
if (spell_id == SPELL_LAY_ON_HANDS) { //lay on hands
recast -= GetAA(aaFervrentBlessing) * 420;
}
else if (spell_id == SPELL_HARM_TOUCH || spell_id == SPELL_HARM_TOUCH2) //harm touch
{
} else if (IsHarmTouchSpell(spell_id)) { //harm touch
recast -= GetAA(aaTouchoftheWicked) * 420;
}
@@ -5196,13 +5192,12 @@ float Mob::ResistSpell(uint8 resist_type, uint16 spell_id, Mob *caster, bool use
// Special case. If the caster has the Unholy Aura Discipline activated and the spell is HT,
// or improved HT then the resist type is disease.
if ((spell_id == SPELL_HARM_TOUCH || spell_id == SPELL_HARM_TOUCH2 || spell_id == SPELL_IMP_HARM_TOUCH) && caster->IsClient() && caster->CastToClient()->FindBuff(DISC_UNHOLY_AURA)) {
if (IsHarmTouchSpell(spell_id) && caster->IsClient() && caster->CastToClient()->FindBuff(DISC_UNHOLY_AURA)) {
resist_type = RESIST_DISEASE;
}
//Get the resist chance for the target
if(resist_type == RESIST_NONE || spells[spell_id].no_resist)
{
if (resist_type == RESIST_NONE || spells[spell_id].no_resist) {
LogSpells("Spell was unresistable");
return 100;
}