* prevent selecting already selected target.

* some changes didnt upload in [81]
This commit is contained in:
False.Genesis 2007-03-05 15:22:16 +00:00
parent 242e9cafcd
commit 5412b1af3d
3 changed files with 19 additions and 0 deletions

View File

@ -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
View 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

View File

@ -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;