parent
d044ef7138
commit
f80c315307
@ -1,3 +1,4 @@
|
|||||||
|
#permission=255
|
||||||
// just a name alternative
|
// just a name alternative
|
||||||
|
|
||||||
QUIT
|
QUIT
|
||||||
@ -91,12 +91,18 @@ void WorldSession::SendSetSelection(uint64 guid)
|
|||||||
SendWorldPacket(packet);
|
SendWorldPacket(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::SendCastSpell(uint32 spellid)
|
void WorldSession::SendCastSpell(uint32 spellid, bool nocheck)
|
||||||
{
|
{
|
||||||
if(!spellid)
|
if(!spellid)
|
||||||
return;
|
return;
|
||||||
MyCharacter *my = GetMyChar();
|
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) )
|
if( (!known) && (!GetInstance()->GetConf()->disablespellcheck) )
|
||||||
{
|
{
|
||||||
logerror("Attempt to cast not-known spell %u",spellid);
|
logerror("Attempt to cast not-known spell %u",spellid);
|
||||||
|
|||||||
@ -60,7 +60,7 @@ public:
|
|||||||
void SendEmote(uint32);
|
void SendEmote(uint32);
|
||||||
void SendQueryItem(uint32, uint64);
|
void SendQueryItem(uint32, uint64);
|
||||||
void SendSetSelection(uint64);
|
void SendSetSelection(uint64);
|
||||||
void SendCastSpell(uint32);
|
void SendCastSpell(uint32 spellid, bool nocheck=false);
|
||||||
|
|
||||||
PlayerNameCache plrNameCache;
|
PlayerNameCache plrNameCache;
|
||||||
ObjMgr objmgr;
|
ObjMgr objmgr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user