* workaround for ticket #4

* forgot to set permission for exit.def
This commit is contained in:
False.Genesis 2007-03-08 19:47:24 +00:00
parent d044ef7138
commit f80c315307
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,4 @@
#permission=255
// just a name alternative
QUIT

View File

@ -91,12 +91,18 @@ void WorldSession::SendSetSelection(uint64 guid)
SendWorldPacket(packet);
}
void WorldSession::SendCastSpell(uint32 spellid)
void WorldSession::SendCastSpell(uint32 spellid, bool nocheck)
{
if(!spellid)
return;
MyCharacter *my = GetMyChar();
bool known = my->HasSpell(spellid);
bool known = nocheck ? true : my->HasSpell(spellid);
//-- TEMP FIX --// TODO: need a list of spells that is excluded from the check and can always be casted.
// settable via DefScript?
if(spellid==836)
known=true;
if( (!known) && (!GetInstance()->GetConf()->disablespellcheck) )
{
logerror("Attempt to cast not-known spell %u",spellid);

View File

@ -60,7 +60,7 @@ public:
void SendEmote(uint32);
void SendQueryItem(uint32, uint64);
void SendSetSelection(uint64);
void SendCastSpell(uint32);
void SendCastSpell(uint32 spellid, bool nocheck=false);
PlayerNameCache plrNameCache;
ObjMgr objmgr;