Commit Graph
1883 Commits
Author SHA1 Message Date
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
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 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
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
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
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 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
Shauren 4bed6b7831 Core/Creatures: Make use of delay parameter for TempSummon case in Creature::DespawnOrUnsummon 2011-03-07 21:25:34 +01:00
Machiavelli e1ac75afe2 Core/Spells: Proper implementation of SPELL_EFFECT_PLAYER_NOTIFICATION (131) - should send SMSG_PLAY_SOUND with EffectMiscValue as soundId.
Research by Kaelima
2011-03-07 21:13:18 +01:00
Machiavelli 28b14f36c8 Core/Vehicle: Use db table GuidLow instead of normal GuidLow (which may differ per instance) for vehicle_accessory definitions. 2011-03-07 20:48:53 +01:00
Machiavelli 27680e420f Core/Vehicles:
- Remove some wrong checks in vehicle_accessory loading.
- Remove Reset() call from Vehicle::Install() - reset is already called by AI functions
2011-03-07 20:25:55 +01:00
GWRde 22703bc58d Core/Spells: Fixed Glyph of Shadow Word: Pain 2011-03-07 19:36:34 +01:00
Machiavelli d6ddc6410c Core/Vehicles: Rename vehicle_accessory to vehicle_template_accessory, and implement a new table named vehicle_accessory to allow accessory definitions based on GUID that will overwrite defeinitions based on entry.
Fixes #Nay
2011-03-06 23:45:22 +01:00
Shauren ac401e0c73 Missed changes 2011-03-06 18:18:31 +01:00
Shauren 19cdf98c8a Core/Loot: Players who were not present during encounter completion are not eligible to receive the item in trade 2011-03-06 17:43:15 +01:00
Machiavelli 0f91728fdd Core/ObjectMgr: Load npc spellclick data after quests. 2011-03-06 16:28:31 +01:00
Machiavelli 10c02690b6 Core/Units: Re-remove MOVEMENTFLAG_ROOT applying on Unit::SetRooted to fix a clientside freeze issue (our visibility system is co-reponsible). It's still an ugly hack and should be fixed properly asap.
Closes #879
2011-03-06 16:07:01 +01:00
Machiavelli d5be3353f3 Core/TempSummon: Implement ForcedUnsummonDelayEvent. Similar to ForcedDespawnEvent for Creatures, this will unsummon TempSummon objects with specified delay.
Core/Vehicles: Implement ForcedUnsummonDelayEvent for creatures exiting vehicles. Fixes visual bug that showed creatures mounted on vehicle after being ejected.
2011-03-06 15:12:34 +01:00
Shauren 4b4d3e7450 Core/Creatures: Implemented UNIT_FLAG_PASSIVE 2011-03-06 12:22:04 +01:00
Havenard 222df58340 [Core/PacketIO] Fix issues with Mind Control that was allowing a player to keep interfering other players' movements using Mind Vision 2011-03-06 11:23:34 +01:00
Machiavelli 6c4a0354a2 Core/ObjectMgr: Move some npc_spellclick_spells and vehicle_accessory related errors to startup instead of post-startup runtime 2011-03-06 11:12:19 +01:00
Machiavelli df97ce7625 Core/Vehicles: Remove redundant Vehicle::Die. All vehicle auras are already removed on Unit::RemoveAllAurasOnDeath.
Addresses ticket:869 - please reconfirm
2011-03-06 10:31:25 +01:00
Shauren 79e660975e Core/Spells: Fixed Heartpierce proc 2011-03-05 18:48:41 +01:00
Shauren 8e1b653fb2 Core/Achievements: Reverted ACHIEVEMENT_CRITERIA_FLAG_HIDDEN implementation 2011-03-05 11:31:41 +01:00
Shauren 36f848a4c2 Scripts/Icecrown Citadel: Only one Mutated Abomination can exist during Professor Putricide encounter
Scripts/Spells: Added blizzlike error messages for certain spells
Scripts/Items: Removed obsolete scripts
2011-03-04 23:53:11 +01:00
Shauren 7120f1eff8 Core/Spells:
* Implemented on CheckCast spell script hook
* Added possibility to send SPELL_FAILED_CUSTOM_ERROR and added enum with all possible options for it

Scripts/Spells:
* Added example script for CheckCast hook with SPELL_FAILED_CUSTOM_ERROR (profession research and Book of Glyph Mastery)
2011-03-04 21:19:43 +01:00
Machiavelli a9582964d3 Core/Vehicles: Make the vehicle system more aura driven. Get rid of redundant checks and update relevant data.
Closes #805
2011-03-04 21:17:06 +01:00
Shauren 704491101f Core/Achievements:
Implemented map and group requirements for achievements
Changed possible methods to const
Implemented hidden flag for achievement criteria
2011-03-04 12:11:20 +01:00
Manuel 7a0df5876b Core/SmartAI: Moved log to debug level.
Signed-off-by: Manuel <[email protected]>
2011-03-04 00:13:25 -03:00
Nay eea7efa463 Core/SAI: Correct debug log for SMART_ACTION_CAST 2011-03-02 18:20:33 +00:00
Shauren 3cb0c4d969 Core/SAI: Fixed SMART_ACTION_EQUIP used with creature_equip_template ids 2011-03-02 18:23:50 +01:00