mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
[Bots] Add TotalDominationBonus modifiers. (#2852)
This commit is contained in:
parent
760b30ca0a
commit
032d423add
@ -1491,19 +1491,16 @@ bool Mob::PassCharismaCheck(Mob* caster, uint16 spell_id) {
|
|||||||
resist_check = ResistSpell(spells[spell_id].resist_type, spell_id, caster, false,0, false, true);
|
resist_check = ResistSpell(spells[spell_id].resist_type, spell_id, caster, false,0, false, true);
|
||||||
|
|
||||||
//2: The mob makes a resistance check against the charm
|
//2: The mob makes a resistance check against the charm
|
||||||
if (resist_check == 100)
|
if (resist_check == 100) {
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
else
|
if (caster->IsOfClientBot()) {
|
||||||
{
|
|
||||||
if (caster->IsClient())
|
|
||||||
{
|
|
||||||
//3: At maxed ability, Total Domination has a 50% chance of preventing the charm break that otherwise would have occurred.
|
//3: At maxed ability, Total Domination has a 50% chance of preventing the charm break that otherwise would have occurred.
|
||||||
int16 TotalDominationBonus = caster->aabonuses.CharmBreakChance + caster->spellbonuses.CharmBreakChance + caster->itembonuses.CharmBreakChance;
|
int16 TotalDominationBonus = caster->aabonuses.CharmBreakChance + caster->spellbonuses.CharmBreakChance + caster->itembonuses.CharmBreakChance;
|
||||||
|
|
||||||
if (zone->random.Int(0, 99) < TotalDominationBonus)
|
if (zone->random.Int(0, 99) < TotalDominationBonus) {
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user