Commit Graph

9909 Commits

Author SHA1 Message Date
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
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
Shauren
c2c40a4750 Scripts: Removed duplicate target selection function (SelectUnit), there is only SelectTarget now 2011-03-09 21:32:04 +01: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
kaelima
8340e5e1dc Scripts/Spells: Corrected naming typo from recent Map of the Geyser Fields fix. 2011-03-08 09:41:23 +01:00
ZxBiohazardZx
95a7b253a6 Scripts/Spells: Modified range for targeting script for Map of the Geyser Fields by Shauren 2011-03-08 00:03:04 +01:00
Shauren
e4c0a80336 Scripts/Spells: Added targeting script for Map of the Geyser Fields 2011-03-07 23:05:44 +01:00