Commit Graph

437 Commits

Author SHA1 Message Date
QAston
a077a26aa5 Core/Spells: update the core to the changes from 1fb1988d46 . To make your custom code work with those changes simply lookup the value of Targets enum value from prev rev, and update the name in your code. 2011-08-16 19:44:18 +02:00
tobmaps
54cf7f28d2 Core/Misc: Fix some typos in af040fc18d 2011-08-13 20:53:24 +07:00
leak
af040fc18d Core/Players: Allow players to answer gamemaster whispers even if whispers are disabled. Whitelist can be reset by .whispers off 2011-08-13 15:10:45 +02:00
Shauren
6ea362e9e0 Core/PacketIO: Documented structure of SMSG_OVERRIDE_LIGHT 2011-08-13 11:44:05 +02:00
Shauren
6ebca04861 Core/Misc: Removed existence check from HandleSetSelectionOpcode and moved setting faction visible to gossip open 2011-08-06 18:48:58 +02:00
Spp
d0de7976dc Core/ObjectMgr: Some minor changes in LocaleString functions 2011-08-04 15:14:15 +02:00
Silinoron
76fe596160 Core/Refer-a-Friend: Finish base work for Refer-a-Friend.
Any testing would be very much appreciated.
2011-08-03 09:28:12 -07:00
Spp
43720b1e3a Core/Movement: Add better error log msg when trying to change active mover 2011-08-02 21:32:35 +02:00
Silinoron
28d541fed3 A handful more compilation errors tossed out. The core should now compile as normal. 2011-08-01 19:34:26 -07:00
Silinoron
588f5af26a A few more mistakes are fixed. Keep in mind you have to re-run cmake in order to compile properly. 2011-08-01 18:54:03 -07:00
Silinoron
a80b2c0dc0 Fix a couple of mistakes made in the last commit. It appears to have been too long since I last worked on TC. 2011-08-01 18:25:48 -07:00
Silinoron
286749550f Add some packet handlers for Refer-a-Friend (work in progress). There is no guarantee that this code will work or even compile. Use at own risk. 2011-08-01 18:19:29 -07:00
Spp-
acd0fc79f6 Core: Pass by const reference for simple objects replaced with pass by value 2011-08-01 14:23:27 +02:00
Machiavelli
58f10c74f7 Core/Spells: Change low level bool triggered with bitmask TriggerCastFlags to better manipulate the behaviour of certain triggered spells. 2011-07-31 21:58:25 +02:00
Shauren
8753a18263 Core/Auras: Corrected SPELL_AURA_CLONE_CASTER and mirror image opcode handling, will no longer rely on incorrectly used creator guid 2011-07-31 16:43:54 +02:00
Machiavelli
b2d37062a0 Core/Vehicles: Allow damaging NPC passengers.
+ Forgotten change from 2effb7
2011-07-30 21:55:06 +02:00
Spp-
e47b96af3e Core: Append single character to stream as character, not as a string 2011-07-29 14:18:28 +02:00
QAston
495ead5f7f Revert "Core/Spells: Fix a crash on checking school immunity added to unit manually (not by aura)"
This reverts commit 07badd7385.
2011-07-28 23:44:39 +02:00
QAston
07badd7385 Core/Spells: Fix a crash on checking school immunity added to unit manually (not by aura) 2011-07-28 23:41:29 +02:00
QAston
045dec19fa CoreSpells: Typofixes: fix area auras autocast and usage of items in combat. 2011-07-28 13:21:31 +02:00
Machiavelli
e291464e06 Fix a warning 2011-07-27 21:27:43 +02:00
Machiavelli
0dcc229071 Core/Commands: Allow muting offline players - the mute will become effective on next player login. 2011-07-27 17:51:57 +02:00
Shauren
b9a6e2333c Core/Spells: Removed implicit casts from SpellImplicitTargetInfo, fixed copypaste mistakes and one crash 2011-07-27 12:35:59 +02:00
Spp-
b2a84d9f1e Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons) 2011-07-27 12:14:27 +02:00
QAston
b0fe236265 Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
Machiavelli
85caf3a2c1 Core/Instances: Fix dungeon and raid difficulty setting for characters under level 70. Prevents entering heroic modes of instances when access criteria are not met. 2011-07-19 20:35:05 +02:00
Shauren
1e3c23a4e8 Core/Spells: Set UNIT_FIELD_TARGET to current spell cast target for proper facing the target 2011-07-15 12:33:03 +02:00
Spp-
6e68b82250 Core/Handlers: Use correct packet size in SMSG_LOOT_MONEY_NOTIFY 2011-07-08 11:15:00 +02:00
Spp-
3f9db9d29e Core/Quests: Reduced the need to expose internal Player's class member 2011-07-08 10:54:46 +02:00
Spp-
a17aae626c Core/Misc: Add better log error in CMSG_FAR_SIGHT Opcode 2011-07-08 10:18:20 +02:00
Nay
d6782fa826 Core/Misc: Refactor SendPlaySpellVisual and SendPlaySpellImpact and move them to Unit (from Spell) 2011-07-04 14:46:48 +01:00
click
a3ff97297d Core: Fix a minor issue with GUID readout for a questhandler logentry 2011-07-02 01:42:18 +02:00
Spp-
bb921ae78c Core: Do not use STL container size method to check if container is empty 2011-07-01 14:58:44 +02:00
Spp-
e9aa72cc7b Cosmetic: rename function escape_string to EscapeString 2011-06-30 14:52:44 +02:00
Spp-
1e95341827 Cosmetic: Remove trailing whitespaces 2011-06-30 11:30:36 +02:00
Machiavelli
e5d253170e Core/Entities: Fix looting gold from vehicles. 2011-06-28 23:11:15 +02:00
Shauren
1eff27f57c Core/Quests: Fixed adding autoaccept quests many times to log when started from items
Closes #2106
2011-06-28 20:16:15 +02:00
kaelima
142943d4c1 This reverts commit f580cddc09. 2011-06-28 13:05:15 +02:00
click
f580cddc09 Core: Add wintergrasp-patch to wintergrasp_cleanup branch - resurrected from an old work-repository, now over as a branch to work on.
Original patch by socolin, cand a ton of contributors :
mathman, joda, spp, silinoron, josh, malcrom, shauren, machiavelli, click, rat, leak, tobmaps, _manuel_, the tcfr team (via socolin), and tons of others for chiming in.

NOTE: THIS IS A WORKING-BRANCH, AND _NOT_ MENT FOR PUBLIC USE OR EVEN CONSIDERED STABLE!
2011-06-28 00:56:29 +02:00
kaelima
d2508f6a6a Core/Arenas: Prevent players from sending MSG_PVP_LOG_DATA when in an arena.
Fixed #1215
2011-06-27 02:50:00 +02:00
Machiavelli
5864a2e151 Core/Packets: Add some additional movementflag filtering to eliminate some packet spoof attempts. 2011-06-27 00:10:53 +02:00
Machiavelli
ad81d4132c Core/Packets: Remove MOVEMENTFLAG_ROOT flag from movementinfo that is sent from client to server. This flag is not valid in this case and is a packet spoofing attempt. When used in conjunction with any of the moving movement flags such as MOVEMENTFLAG_FORWARD this will freeze surrounding clients that receive the cheater's movementinfo.
Thanks to Dvlpr for help with research.
2011-06-26 21:27:10 +02:00
Shauren
0bdbd771ce Core/Creatures: Reverted quest requirement for vendors, this has to be done differently 2011-06-24 15:11:29 +02:00
Shocker
5ddf90c5fe Core/Spells: Don't allow players to cast client-side hidden spells directly 2011-06-23 23:43:49 +03:00
tobmaps
e033d4c7cc Fix build 2011-06-24 02:57:06 +07:00
Shauren
0ae926e28e Core/Creatures: Items out of stock or items which are required for quests will no longer be displayed in vendor list 2011-06-23 21:24:16 +02:00
Liberate
03eb4ae502 Core/WorldSession: Fix level requirement for Death Knight creation.
Closes #2098
2011-06-23 15:00:44 +02:00
Liberate
bf1f37f9b3 Core/WorldSession: Fix a crash at character creation. Author: Derex
Closes #2097
2011-06-23 13:33:44 +02:00
QAston
3137a82c7c Core/Spells: Cleanup in Spell.h:
- Codestyle (fix function naming) and cleanup changes in SpellCastTargets class, also access variables of this class by getters/setters
 - Move IsQuestTameSpell function to SpellMgr.h
 - Move UnitList typedef to Unit.h
Additionally - add missing copyright notice to SpellAuraEffects.h
2011-06-23 13:28:52 +02:00
Derex
d65e1d9a3f Core/Network: Handle running out of file descriptors on linux-based systems (windows-based systems requires additional fixes)
Signed-off-by: click <click@gonnamakeyou.com>
2011-06-23 11:14:01 +02:00