Нельзя применить к цели выше 30-го уровня.
Код:
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index a389f3c..8846f0c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -4846,6 +4846,14 @@ SpellCastResult Spell::CheckCast(bool strict)
return SPELL_FAILED_CASTER_AURASTATE;
}
+ // Sleep (item 3434)
+ if (m_spellInfo->Id == 700)
+ {
+ int32 targetLevel = m_targets.getUnitTarget()->getLevel();
+ if (targetLevel > 30)
+ return SPELL_FAILED_FIZZLE;
+ }
+
// totem immunity for channeled spells(needs to be before spell cast)
// spell attribs for player channeled spells
if (m_spellInfo->HasAttribute(SPELL_ATTR_EX_UNK14)