Commit Graph

2436 Commits

Author SHA1 Message Date
leak ca02708564 Core/GameEventMgr: Forgotten query 2011-03-18 18:49:40 +01:00
Shauren a69f3c7c64 Scripts/Pit of Saron: Fixed Scourgelord Tyrannus intro being started every time areatrigger was stepped on 2011-03-18 18:31:17 +01:00
Shauren 2364c22ee4 Core/Storage: Readded missing record size calculations for SQL storage 2011-03-18 18:07:03 +01:00
Shauren d3425921f8 Core/Storage: A few more improvements to code style, corrected some engrish and fixed compile 2011-03-18 17:01:37 +01:00
runningnak3d 2f89fa9e69 Merge branch 'master' of git@github.com:TrinityCore/TrinityCore 2011-03-18 09:41:04 -06:00
runningnak3d 171268a565 Core/Storage: Add some sanity checks and better define some SQL and DBC
storage format field types.
* Also LOTS of whitespace cleanup
* Some Trinity code style applied
* Some if / else if -> switch / case
* Original ideal for patch by Vinolentus
2011-03-18 09:36:59 -06:00
Shauren 489e629437 Core/Players: Fixed crash in GetBagByPos 2011-03-18 15:41:39 +01:00
SnakeIce fa8b30a45c Scripts/Pit of Saron: Fixed spawning quest creatures in Pit of Saron
DB/Quests: Fixed quest "The Path to the Citadel"
SQL credits - Tome
2011-03-18 15:35:16 +01:00
Shauren 98646c5328 Scripts/Icecrown Citadel:
Removed unneccesary checks and timer at Rotface
Replaced defines with constants
2011-03-18 15:15:52 +01:00
VladimirMangos 3384dc3a24 Core/Misc: Drop unused define GAMEOBJECT_FISHINGNODE_ENTRY 2011-03-18 07:01:51 -06:00
Azazel e49b5b44d6 Core/Cleanup: remove C-style cast to (Bag*):
* add ToBag() methods for Item class;
* add GetBagByPos() method for Player class.
2011-03-18 15:58:08 +06:00
leak 90a3fee232 Core/GameEventMgr: Reduce memory waste caused by gaps in game_event entry IDs 2011-03-18 00:11:12 +01:00
Shauren 660e22faeb Core/Corpses: Fixed loading phaseMask if its greater than 255 2011-03-17 09:42:33 +01:00
Azazel ca76e17bd6 Core/Cleanup: refactor honor and arena rating modifying methods:
* simplify wierd logic;
* add const modifiers to several getter methods.

(Idea based on commit [11187] by zergtmn for Mangos)
2011-03-17 11:00:41 +06:00
Shauren 12b65aa206 Core/Pets
Fixed infinite cooldown bugging after relogging
Restored pet create health for pets without pet_levelstats data
Corrected health gain from stamina for DK Ghouls
2011-03-15 13:23:52 +01:00
Shauren 119bb6fcd5 Core/Units: Fixed SelectNearbyTarget to ignore totems, critters and spirit healers 2011-03-15 12:08:07 +01:00
A Metaphysical Drama 4f48b7ae8d Core/Auras: Fixed SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT and SPELL_AURA_MOD_POWER_COST_SCHOOL auras not taking charges at proc 2011-03-15 11:41:12 +01:00
Machiavelli 1c3082446e Core/Gameobject: Respect cooldown for trap and goober gameobjects.
Original patch by VladimirMangos
2011-03-14 23:16:34 +01:00
Shauren cd5744f2c5 Core/Units: Removed unneeded casts in ApplyResilience 2011-03-14 21:39:53 +01:00
leak 6a4ffb4be1 Core/Battlegrounds: Free instance id in the proper place.
fixes #966
2011-03-14 20:39:05 +01:00
runningnak3d 28c264402b Revert "Core/Spells: Small cleanup of SpellMgr"
This reverts commit 6595364227.

* While this does need cleanup, instance specific spells should stay
* grouped together.
2011-03-14 08:38:20 -06:00
Koord 6595364227 Core/Spells: Small cleanup of SpellMgr 2011-03-14 08:25:27 -06:00
runningnak3d dd2405bd6c Core/Misc: Small code style change (very small) 2011-03-14 08:20:12 -06:00
Supabad 85cc623f3f Scripts/Ulduar: Proper handling of GO_LEVIATHAN_GATE
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2011-03-14 15:48:54 +01:00
runningnak3d 3db0029f66 Core/Spells: Force spell 51590 (Toss Ice Boulder) to only affect one
target.
2011-03-14 07:33:46 -06:00
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
Shocker b5fa232716 Core/Commands: Allow npc info to show both DB GUID and current GUID 2011-03-11 23:31:06 +02: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 8d4b04318f Scripts/Spells: Added spell script for Shadowy Disguise(48917) 2011-03-10 20:54:24 +01:00