Core/Spells: Don't allow players to cast client-side hidden spells directly
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user