Hack to fix repulsable bard charms (#1320)

This isn't the exactly the right way, but it's behavior is much closer
to live than current for Solon's Song of the Sirens (725), the other
bard charms don't repulse due to mana cost
This commit is contained in:
Michael Cook (mackal) 2021-04-01 14:19:47 -04:00 committed by GitHub
parent a9a83a2052
commit 084b253ff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2647,6 +2647,12 @@ bool Mob::ApplyNextBardPulse(uint16 spell_id, Mob *spell_target, CastingSlot slo
}
void Mob::BardPulse(uint16 spell_id, Mob *caster) {
// so for Solon's Song of the Sirens (725) if we're repulsing, we need to skip
// other charms have mana and don't repulse
// This is probably not the ideal place for this, but it will work
if (IsCharmed() && GetOwner() == caster && IsEffectInSpell(spell_id, SE_Charm)) {
return;
}
int buffs_i;
int buff_count = GetMaxTotalSlots();
for (buffs_i = 0; buffs_i < buff_count; buffs_i++) {