* prevent selecting already selected target.
* some changes didnt upload in [81]
This commit is contained in:
parent
242e9cafcd
commit
5412b1af3d
@ -81,4 +81,10 @@ notifyping=1
|
||||
// shows the opcodes pseuwow sends to the server
|
||||
showmyopcodes=0
|
||||
|
||||
// disable the check for learned spells.
|
||||
// if you disable it, you can cast spells you do not have in our spellbook!
|
||||
// WARNING: most servers will consider this as CHEATING!
|
||||
// DO NOT put 1 here!
|
||||
disablespellcheck=0
|
||||
|
||||
|
||||
|
||||
11
bin/scripts/selfheal.def
Normal file
11
bin/scripts/selfheal.def
Normal file
@ -0,0 +1,11 @@
|
||||
#permission=0
|
||||
|
||||
// purpose: heal self with full hp. GM-ONLY!!
|
||||
// be sure you have this spell in your spellbook!
|
||||
// DO NOT USE THIS SCRIPT IF YOU ARE NO GM!
|
||||
|
||||
// target self (the name we used to login)
|
||||
TARGET ${#CHARNAME}
|
||||
|
||||
// 23965 = instant heal
|
||||
CASTSPELL 23965
|
||||
@ -81,6 +81,8 @@ void WorldSession::SendQueryItem(uint32 id, uint64 guid) // is it a guid? not su
|
||||
void WorldSession::SendSetSelection(uint64 guid)
|
||||
{
|
||||
ASSERT(GetMyChar()) // we need to be logged in to select something
|
||||
if(guid==GetMyChar()->GetTarget())
|
||||
return; // no need to select already selected target
|
||||
GetMyChar()->SetTarget(guid);
|
||||
logdebug("SetSelection GUID="I64FMT,guid);
|
||||
WorldPacket packet;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user