Implemented 467,468

Implemented
SE_DS_Mitigation_Amount		467
SE_DS_Mitigation_Percentage	468

Reduce incoming DS by amt or percentage. base1 is value, if a reduction is desired it should be set to negative for both.
This commit is contained in:
KayenEQ
2021-07-11 14:19:07 -04:00
parent 3e9db3d794
commit 463f03f9f4
6 changed files with 82 additions and 4 deletions
+4
View File
@@ -585,6 +585,10 @@ void Mob::TryBackstab(Mob *other, int ReuseTime) {
if(IsClient())
CastToClient()->CheckIncreaseSkill(EQ::skills::SkillBackstab, other, 10);
m_specialattacks = eSpecialAttacks::None;
int double_bs_front = aabonuses.Double_Backstab_Front + itembonuses.Double_Backstab_Front + spellbonuses.Double_Backstab_Front;
if (double_bs_front && other->GetHP() > 0 && zone->random.Roll(double_bs_front))
RogueBackstab(other, false, ReuseTime);
}
else { //We do a single regular attack if we attack from the front without chaotic stab
Attack(other, EQ::invslot::slotPrimary);