From 2b38dbf1fbb2fd5f352d69753c3ba6162c0da1f4 Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Sun, 24 Jun 2018 12:13:09 -0400 Subject: [PATCH] Changes to make Harmony work. --- common/spdat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/spdat.cpp b/common/spdat.cpp index 064b8fb61..a5764a625 100644 --- a/common/spdat.cpp +++ b/common/spdat.cpp @@ -244,8 +244,7 @@ bool IsBeneficialSpell(uint16 spell_id) } else { // If the resisttype is not magic and spell is Bind Sight or Cast Sight // It's not beneficial - if (sai == SAI_Dispell_Sight && spells[spell_id].skill == 18 && - !IsEffectInSpell(spell_id, SE_VoiceGraft)) + if ((sai == SAI_Calm && IsEffectInSpell(spell_id, SE_Harmony)) || (sai == SAI_Calm_Song && IsEffectInSpell(spell_id, SE_BindSight)) || (sai == SAI_Dispell_Sight && spells[spell_id].skill == 18 && !IsEffectInSpell(spell_id, SE_VoiceGraft))) return false; } }