Commit Graph

11452 Commits

Author SHA1 Message Date
Azazel
bcaa3e07c8 Core/Cleanup: reformated and refactored code in Battleground.cpp/h:
* added proper formatting;
* moved identical code into separate method (have I already said that I hate copy/paste?);
* fixed several leaks;
* added more informative error messages.

More to come...
2011-03-14 19:21:34 +06:00
VladimirMangos
05eda57750 Core/Misc: fix item search by guid in bank item slots. 2011-03-14 17:20:20 +06:00
Machiavelli
31a2c9b82b Core: Fix crash in ~ScriptMgr
Fixes: #854
Fixes: #918
Fixes: #917
2011-03-14 09:44:02 +01:00
Azazel
1eed7c53a9 Fix a crash introduced in 6ad4044f05 (I should be more attentive) 2011-03-14 10:01:36 +06:00
Machiavelli
7b62bfc1c5 Core/ScriptedAI: Add ResetLootMode() to BossAI::_Reset() and remove some redundant calls in General Vezax script 2011-03-13 22:28:37 +01:00
leak
a874fe0764 Core/Battlegrounds: Fixed memory and CPU cycle leak that was caused by BG objects not being removed properly in "All Arenas" case 2011-03-13 21:52:37 +01:00
Shauren
e97d6e3a60 Scripts/Icecrown Citadel
* Implemented heroic limited attempts for wing end bosses
* Added script for Blood Quickening weekly quest
2011-03-13 21:51:42 +01:00
Shauren
b986dfb57a Core/Scripts: Added FillInitialWorldStates hook to InstanceScript class for the same purpose as its used in Battlegrounds 2011-03-13 21:49:07 +01:00
Shauren
39acbddf69 Core/Players: Sanctuary status is now updated on area change, fixes argent tournament and frozen halls sanctuaries 2011-03-13 21:47:42 +01:00
Shauren
16e40cc8cf Compile fix 2011-03-13 13:12:43 +01:00
Supabad
40d1e61566 Scripts/Ulduar: Remove known hacks from leviathan, create workaround for shutdown event.
Added missing script to db and core.
2011-03-13 13:00:09 +01:00
Azazel
6ad4044f05 Core/Mechanics: refactor XP (and in fact, honor/reputation/kill credit) rewarding routine and get rid of copy/pasted code. 2011-03-13 15:28:45 +06:00
leak
986a09c121 SQL: Corrected improper sql file naming 2011-03-12 16:00:27 +01:00
ZxBiohazardZx
20f5a14f3a DB/Immunities: Update Boss_immunities for Frozen Halls 2011-03-12 15:35:02 +01:00
Shocker
b5fa232716 Core/Commands: Allow npc info to show both DB GUID and current GUID 2011-03-11 23:31:06 +02:00
Shauren
b52e01ff52 Fixed importing sql file 2011-03-11 22:08:21 +01:00
leak
2a34b41ce8 Core/Instances: Fix warning 2011-03-11 19:57:00 +01:00
Azazel
7200363835 Core/Loading: refactor inventory loading routine and add more informational error logging to it. 2011-03-12 00:54:37 +06:00
Shauren
9b2d62b72d Scripts/Icecrown Citadel: Added missing faction specific part of intro scene at Light's Hammer 2011-03-11 19:35:22 +01:00
leak
190ef1c2ef Core/Instances: Fix crash and allocation issue in instance id generation 2011-03-11 13:24:58 +01:00
Azazel
3973d1b454 CharDB Schema/Cleanup: cleanup channels table:
* rename columns (remove m_ prefix and convert to lowerCamel case);
* rename prepared statements to conform to standards (there is no CLEAN statement).
2011-03-11 17:18:17 +06:00
Shauren
20b44e82d5 Scripts/Icecrown Citadel: Added intro scene at Light's Hammer and SAI for The Damned 2011-03-11 11:07:23 +01:00
leak
4f892bbba1 Core/ObjectMgr: Use a map rather than a vector for indexing guilds by their guid (might contain large gaps). 2011-03-11 00:18:49 +01:00
Shauren
0aa015d897 Core/Items: Don't allow equipping polearms/staves while offhand is not empty (Titan's Grip) 2011-03-10 23:52:13 +01:00
leak
b6074f90da Core: Cleaned up leftovers from loading functions streamlining 2011-03-10 22:22:29 +01:00
leak
5b481d36bf Core/Battlegrounds: BG instances are not saved to the database and thus need no deletion. 2011-03-10 22:22:28 +01:00
leak
4569e4852a Core/Instances: Recycle instance IDs. Should fix instance ID shifting and related issues with instance binding.
fixes #736
2011-03-10 22:22:27 +01:00
kaelima
c28c3233ef DB/SAI: Fixed Quest: Who Are They? (10040,10041) 2011-03-10 20:56:47 +01:00
kaelima
8d4b04318f Scripts/Spells: Added spell script for Shadowy Disguise(48917) 2011-03-10 20:54:24 +01:00
Studioworks
d7fd0726a2 DB/Conditions: Delete wrong condition 2011-03-10 18:11:37 +00:00
amnell
4663aee6ee DB/Conditions: Add Condition to Fairy Fire (Feral)
fixes #886
2011-03-10 14:38:08 +01:00
ZxBiohazardZx
10d26dd13a DB/Quest: Set Correct Start/Finish NPC for Andormu
fixes #919
2011-03-10 14:32:57 +01:00
ZxBiohazardZx
401c923894 DB/Disables: Disable Achievement: Not In My House untill a proper script is in place 2011-03-10 14:28:33 +01:00
Nay
3dce3bff35 DB/Loot: Use Correct item for Tharon'ja Quest drop 2011-03-10 14:21:33 +01:00
Svannon
25086529d9 DB\AI: Set different AI for Grizzly Bear
Fixes: #265
2011-03-10 14:13:52 +01:00
Shauren
abaf5fad35 DB/Pools: Remade ICC quest pools 2011-03-10 11:24:38 +01:00
Shauren
ea71e8941d DB/Instances: Deleted spawns for Gunship Battle, added missing trigger flags in ICC 2011-03-10 10:40:32 +01:00
Shauren
ca201cc491 Scripts/Icecrown Citadel: Fixed Mutated Abomination problems introduced recently 2011-03-10 10:38:07 +01:00
Shauren
3ba47e529b Core/Spells: Attempts at summoning player to an instance will result in fail if the targeted player is saved to another instance instead of summoning him at summoner's position in a different instance 2011-03-09 23:07:50 +01:00
Nay
aaf377d983 DB/Quests: Remove missing quest from the disables table 2011-03-09 21:26:44 +00:00
Shauren
c2c40a4750 Scripts: Removed duplicate target selection function (SelectUnit), there is only SelectTarget now 2011-03-09 21:32:04 +01:00
Nay
6e1e6957e2 DB/Pages: Add missing page_text data 2011-03-09 19:33:37 +00:00
Nay
6e158f90a3 SQL: Fix typo in previous commit 2011-03-09 16:32:44 +00:00
Nay
d8a4011945 DB/Quests: Remove some quests from the disables table. This should fix some of them (might require scripts)
DB/Items: Add missing item_templates to DB
DB/NPC: Correct a DB startup error related to creature_addon table
Closes #913 & #929
2011-03-09 15:51:03 +00:00
Shauren
9710c41a40 More warning fixes 2011-03-08 19:11:02 +01:00
Shauren
cbbfb52ca7 Scripts/Ulduar: Use proper parameter type in DoAction (Assembly of Iron) 2011-03-08 17:48:09 +01:00
Shauren
ca0adc6a75 Core/CLI: Use proper define in platform checks 2011-03-08 17:44:28 +01:00
Shauren
e25a5ca4f8 Core/Scripts: Changed SummonList::DoAction to take signed int as action identifier to be consistent with AI()->DoAction parameter type 2011-03-08 17:17:41 +01:00
Shauren
e5347a3bda Core: Fixed warnings:
C4100: 'variable' : unreferenced formal parameter
C4701: potentially uninitialized local variable
C4389: '!=' : signed/unsigned mismatch
C4245: 'argument' : conversion from 'X' to 'Y', signed/unsigned mismatch
2011-03-08 16:42:00 +01:00
kaelima
00f2ded757 Scripts/Scarlet Enclave: Fix model for scarlet mine cart. 2011-03-08 09:43:38 +01:00