Core/Spells: Don't allow players to cast client-side hidden spells directly

This commit is contained in:
Shocker
2011-06-23 23:43:49 +03:00
parent c33dbded94
commit 5ddf90c5fe
3 changed files with 8 additions and 3 deletions
@@ -402,7 +402,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket)
spellInfo = actualSpellInfo;
}
Spell* spell = new Spell(mover, spellInfo, false);
Spell* spell = new Spell(mover, spellInfo, false, 0, false, true);
spell->m_cast_count = castCount; // set count of casts
spell->prepare(&targets);
}