[Bug Fix] Fix Bard Invisibility Songs breaking every 4 ticks (#3783)

# Notes
- Fixes #2361.
This commit is contained in:
Alex King 2023-12-18 19:10:28 -05:00 committed by GitHub
parent 703862d977
commit 5cc87cbda7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3885,7 +3885,7 @@ bool Mob::SpellOnTarget(
// Prevent double invising, which made you uninvised
// Not sure if all 3 should be stacking
//This is not live like behavior (~Kayen confirmed 2/2/22)
if (!RuleB(Spells, AllowDoubleInvis)) {
if (!RuleB(Spells, AllowDoubleInvis) && !IsActiveBardSong(spell_id)) {
if (IsEffectInSpell(spell_id, SE_Invisibility)) {
if (spelltar->invisible) {
spelltar->MessageString(Chat::SpellFailure, ALREADY_INVIS, GetCleanName());