Fixed chest game objects interactions

This will fix the "you do not have a pet" message when interacting with
chest game objects.

Would like to thank - Snowdog on the MaNGOS forums for the fix.
This commit is contained in:
Necrovoice 2017-08-08 18:14:22 -04:00 committed by Antz
parent 832459d5a6
commit 3f561f377d

View file

@ -6087,6 +6087,7 @@ SpellCastResult Spell::CheckCast(bool strict)
if ((canFailAtMax || skillValue < sWorld.GetConfigMaxSkillValue()) && reqSkillValue > irand(skillValue - 25, skillValue + 37)) if ((canFailAtMax || skillValue < sWorld.GetConfigMaxSkillValue()) && reqSkillValue > irand(skillValue - 25, skillValue + 37))
return SPELL_FAILED_TRY_AGAIN; return SPELL_FAILED_TRY_AGAIN;
} }
break;
} }
case SPELL_EFFECT_SUMMON_DEAD_PET: case SPELL_EFFECT_SUMMON_DEAD_PET:
{ {