Commit Graph
203 Commits
Author SHA1 Message Date
Chaplain fb27848510 Core: Clean up here and there.
*replase postfix iterator increment\decrement with prefix in cycles
*replase strlen(*char) != 0 with *char[0] != '\0'
*replase strlen(rStr.c_str()) with rStr.length()
2011-08-23 18:09:08 +03:00
Shauren 1c606d0d0c Core/Battlegrounds: Don't send SOTA transports removal twice 2011-08-17 12:02:34 +02:00
Shauren bac78de203 Core/Battlegrounds: SotA will no longer crash in update 2011-08-13 12:28:36 +02:00
tobmaps 7f57507155 Fix compile 2011-08-06 19:56:12 +07:00
Spp 92393392ef Core/Battleground: Missing changes from rev 4ecda55 2011-08-06 10:00:09 +02:00
Spp 4ecda557e4 Core/Battleground: Some (minor) code optimizations
- All access to Battleground vars are done using funtions (Remove friendship from Battleground and BattlegroundMgr)
- Move specific 47 mins arena check to battleground code as its generic to all arenas
- Create PreUpdateImpl and PostUpdateImpl functions. Specific battlegrounds will implement those if needed (No more need of call Battleground::Update inside specific BGs)
- Modify Create function to use only one parameter
- Remove EventPlayerCapturedFlag from Battleground class, only one BG implements it and it's not used outside that BG.
2011-08-05 11:57:09 +02:00
tobmaps 2056af63f0 Core/Spells: Fix typo in b0fe236265 , thx A-Metaphysical-Drama 2011-08-05 01:46:35 +07:00
Spp e7327e7e94 Core: Fix compile without PCH and fix some warnings 2011-08-03 11:23:08 +02:00
Spp- c69b149d7e Core: Typo fix introduced in previous commit (:S) 2011-08-01 14:57:30 +02:00
Spp- 079f292b15 Core: Some more missing changes from previous commit (Pass by const reference for simple objects replaced with pass by value). Also fix unintended change 2011-08-01 14:51:44 +02:00
Spp- acd0fc79f6 Core: Pass by const reference for simple objects replaced with pass by value 2011-08-01 14:23:27 +02:00
Liberate 6cfb87639c Core/Arena: A more accurate implementation of rating gain/loss. This fixes the strange behaviour personal rating could have, as well as implements the bigger rating scale added in patch 3.1.
Fixes #230
2011-07-30 22:46:45 +02:00
tobmaps cf643e5150 Core/Arenas: Removed some outdated stuff 2011-07-29 07:55:00 +07:00
Spp- b2a84d9f1e Core/ObjectMgr: Remove GetPlayer function (Remove double use of singletons) 2011-07-27 12:14:27 +02:00
Spp- fa50c0a464 Fix some warnings here and there 2011-07-27 11:00:39 +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
Shauren 74e2d981ac Core/GameObject: Refactored destructible building handling, properly implemented spell effect repair 2011-07-22 21:22:05 +02:00
maanuel 1b9a2dc4dc Isle of Conquest: Corrected message sent when node is claimed or captured. 2011-06-23 18:41:38 -03:00
Shocker 7f0af21fcd Revert "Core/Battlegrounds: Remove player on leave from battleground player map only after battleground-specific code"
Some battlegrounds (arenas) need access to the updated player map in RemovePlayer(), pass team as parameter instead
2011-06-18 14:08:51 +03:00
Shocker f2735b85c7 Core/Battlegrounds: Remove player on leave from battleground player map only after battleground-specific code 2011-06-17 21:26:33 +03:00
tobmaps 2f2396b7e0 Core/Arenas: Remove both positive and negative auras only at arena join
Closes #2000
2011-06-16 00:20:20 +07:00
kaelima b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click da03bbbdab Core: Yet more cleanups in codestyle... 2011-06-12 02:06:07 +02:00
click c77aa6e846 Core: And some more cleanups... 2011-06-12 02:00:43 +02:00
click f16df538ee Core: More codestyle cleanups 2011-06-12 01:47:45 +02:00
click 158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
Shauren 3d8e4300b7 Core/Achievements: Achievement criteria type 39 should check player's personal rating, not team rating
Closes #803
2011-05-25 23:39:17 +02:00
Shauren 19bf53a0cb Core/Achievements: Added missing reset cases for achievement criterias 2011-05-14 10:50:27 +02:00
Shauren bdf43d5a9c Core/Achievements: Reset ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL when joining battlegrounds 2011-05-14 10:41:25 +02:00
click b6cf587de9 Core: Remove some warnings here and there 2011-05-13 18:07:12 +02:00
Az@zel f73c6c40bb Core/Misc: fix compiler warnings 2011-05-11 11:12:26 +06:00
Shauren 551889c42f Core: More warning fixes 2011-05-07 20:09:45 +02:00
Shauren 7905200eba Core: Warning fixes 2011-05-07 19:08:50 +02:00
leak 6fffcb6890 Fix nonPCH build. Thanks to liszt.
Fixes #1385
2011-05-05 15:23:37 +02:00
leak ce01a37c2c Core/ObjectMgr: Refactor arena team related functions into dedicated class 2011-05-03 15:01:37 +02:00
leak 1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
leak 01a79947d5 More cleanup after last commit spree 2011-04-29 19:59:40 +02:00
leak c51c817a45 Core/ObjectMgr: Refactor sCreatureStorage 2011-04-28 22:57:08 +02:00
leak e2e9431ca3 Core/ObjectMgr: Refactor sGOStorage 2011-04-28 22:54:30 +02:00
Shauren 8898db8b27 Core: Corrected NULL usage, it should only be used with pointers, not integers 2011-04-23 15:53:48 +02:00
Supabad 3b99e173f0 Scripts/Achievements: Move some achievement scripts to database.
Add database support for Ancient Protector and Ancient Courtyard Protector.
2011-04-21 23:38:15 +02:00
Shauren 97f482cd82 Core/Achievements: Removed unused parameter from UpdateAchievementCriteria and unused DoCompleteAchievement from BattlegroundMgr 2011-04-21 23:32:45 +02:00
Shauren 316b85652e Core/Achievements: Reset all possible crieteria with "in single battleground" requirement on BG start 2011-04-21 21:14:49 +02:00
Supabad 35c238050a Scripts/Achievements: add multiple achievement scripts for Strand Of The Ancients.
add kill counter reset related to Battleground achievements.
2011-04-17 11:11:40 +02:00
drahy ce1224239d Core/Arena: Arena team member saving fixed
fixes #1214
2011-04-13 14:37:55 +02:00
Azazel 72040c1654 Core/Misc: fix compilation warnings 2011-04-11 17:38:57 +06:00
Supabad 3771798a2e Core/BattleGrounds: update Gameobject hook to support multiple destructable building events.
little cleanup in GameObject.cpp
2011-04-10 20:55:17 +02:00
leak 7935c2f5c2 Core/Arena: Move personalRating to arena_team_member 2011-04-08 21:14:30 +02:00
Shauren 05394e01c6 Core/Arena: Fixed compile on gcc 4.5 and possible runtime crashes on other versions of this compiler 2011-04-06 16:59:30 +02:00
leak ae3ab32ea5 Core/Arenas: Refactor arena code and db layout 2011-04-05 21:54:28 +02:00