diff --git a/bin/conf/PseuWoW.conf.default b/bin/conf/PseuWoW.conf.default index 1d7896d..ad998cb 100644 --- a/bin/conf/PseuWoW.conf.default +++ b/bin/conf/PseuWoW.conf.default @@ -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 + diff --git a/bin/scripts/selfheal.def b/bin/scripts/selfheal.def new file mode 100644 index 0000000..8b7455e --- /dev/null +++ b/bin/scripts/selfheal.def @@ -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 \ No newline at end of file diff --git a/src/Client/World/CMSGConstructor.cpp b/src/Client/World/CMSGConstructor.cpp index 976eccd..fb2827f 100644 --- a/src/Client/World/CMSGConstructor.cpp +++ b/src/Client/World/CMSGConstructor.cpp @@ -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;