aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
AgeCommit message (Collapse)Author
2010-01-18*Remove some of no longer needed debug code.QAston
--HG-- branch : trunk
2010-01-18*Add some debug info to trac reason of assertion fail in Unit destructor.QAston
--HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16Some replacements .count to .find for better performance - original patch by ↵n0n4m3
zhenya. --HG-- branch : trunk
2010-01-16Fix a mem leak in ObjectMgr::LoadWaypointScripts(), ↵Anubisss
http://pastebin.com/f701c1e11 --HG-- branch : trunk
2010-01-15* Update structure for SMSG_ADDON_INFO and add some sort of basic handling ↵XTZGZoReX
for incorrect addon CRCs (anti-cheating). * Fix CRLF in MovementHandler.cpp. * Move some handlers/senders to correct place. --HG-- branch : trunk
2010-01-14* Set creature_template.unit_class to 1 (UNIT_CLASS_WARRIOR) if the value is ↵XTZGZoReX
wrong to prevent issues in CreatureBaseStats::Generate*() functions. --HG-- branch : trunk
2010-01-14* creature_template.unit_class cannot be 0 - added check for this.XTZGZoReX
--HG-- branch : trunk
2010-01-11* Fix crash when there's no creature_classlevelstats entry for a creature level.XTZGZoReX
* All this really does is fill in default values of 1.. If you got custom content, you'll have to fill in the creature_classlevelstats table yourself. This patch doesn't automagically fix stats for you. --HG-- branch : trunk
2010-01-10* Add support for base armor values in creature_classlevelstats.XTZGZoReX
* Change the table structure to be more core-friendly. * Remove armor field in creature_template and add Armor_mod field. * Also add static CreatureBaseStats::GetBaseStats() function for scripts. --HG-- branch : trunk
2010-01-10*cleaned up SharedDefinesRat
--HG-- branch : trunk
2010-01-10Update aura system:QAston
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras: * Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type * Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras * Aura data is shared for all units which have AuraApplication of the Aura * Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now) * Remove spell source and AreaAuraEffect classes * Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant) * Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation * AreaAura updates are done in owner _UpdateSpells cycle * Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list * And you can access area aura target list * Add basic support for aura amount recalculation * Save recalculation state and base amount of auras to db * Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db * Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets * Sort aura effect handlers in SpellAuras.cpp and .h by their use * Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal * SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly * Send aura application client update only once per unit update - prevent unnecesary packet spam * Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet * Fix memory leak at player creation (not deleted auras) * Updated some naming conventions (too many to mention) * Added Unit::GetAuraOfRankedSpell() function * Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead * Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc) * Implement AURA_INTERRUPT_FLAG_LANDING * Implement EffectPlayerNotification (thanks to Spp) * Remove wrong aura 304 handler * Add better handler for death runes * Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura * Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script * Add many assert() procection from idiots using some functions in wrong way * I am to lazy to write here anything more Thanks to Visagalis for testing this patch PS: Do not make patches like this, please --HG-- branch : trunk
2010-01-01Make the core boot alot cleaner. Fix some formating. Make custom attributes ↵p0wer
for spells show a bar and how much they are loading. Overall fix 99% of display issues while core is booting. --HG-- branch : trunk
2009-12-31Update DBCFilesCount to the current amount of DBC files. Also, if locale ↵p0wer
tables are empty, they will no longer display anything. --HG-- branch : trunk
2009-12-29* Remove useless CheckDB functionality. This does not belong in core in any ↵XTZGZoReX
shape or form. --HG-- branch : trunk
2009-12-24Temporary revert 6743 commit. I fix this patch across 1-2 days.n0n4m3
--HG-- branch : trunk
2009-12-23Replaced time(NULL) on sGameTime.GetGameTime() this is used for better ↵n0n4m3
performance. Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton. 2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs. --HG-- branch : trunk
2009-12-22Also add expansion and unit class to debug output when base stats for ↵Machiavelli
creature cannot be found to better pinpoint lack of DB support. --HG-- branch : trunk
2009-12-22* More DB tweaks:XTZGZoReX
- Load GO even if it has no displayid - while it's wrong, it's not something that'll kill the client anyway. - Don't warn about non-existing loot templates for GOs - this is to allow some WDB data to be filled in (GOs that have no spawns and thus no gameobject_loot_template entries). --HG-- branch : trunk
2009-12-22* Better way to do the check in rev 6697.XTZGZoReX
00:33:56 | @runningnak3d: Leave a big message in the commit log to along the lines of "runningnak3d didn't know what the f*** he was doing" :) --HG-- branch : trunk
2009-12-21* Added back support for 1000 value to indicate unlimited stacking inBrian
* item_template.stackable * Removed pointless check for stackable limit at item_template load. --HG-- branch : trunk
2009-12-21* Added support for GAMEOBJECT_TYPE_TRAP and GAMEOBJECT_TYPE_SPELL_FOCUS toBrian
* have modelid=0 since this is valid data for those GO types. More to the * point removed the check at core load that resulted in an error being logged --HG-- branch : trunk
2009-12-21* Add support for extremely large stackable value in item_template.Brian
* Patch by Kudlaty -- THANK YOU! --HG-- branch : trunk
2009-12-21* Add support for RewSpellCast=-1. If -1 remove all auras applied to player atBrian
* quest start. * Patch by Kudlaty -- THANK YOU! --HG-- branch : trunk
2009-12-20* Fix memory leak. Thanks to Anubisss for pointing out.XTZGZoReX
--HG-- branch : trunk
2009-12-20* Added support for using a lookup table for creature mana / healthBrian
* As long as creature level, class, and the proper expansion they are from are * set in creature_template, you will have 100% accurate health and mana. * Research and base stats table done by Malcrom -- THANK YOU! * Original patch by Kudlaty -- THANK YOU! * Updated and enhanced by Machiavelli - THANK YOU! * Optimizations by w12x, MrSmite, and XTZGZoReX -- THANK YOU! * Final code updating for current rev by XTZGZoReX -- THANK YOU! --HG-- branch : trunk
2009-12-20* Added support for RepObjectiveFaction2 / RepObjectiveValue2 (oppositeBrian
* faction) IE: need to LOSE reputation with that faction. * Original patch by Brian / Ported to latest rev. by Kudlaty -- THANKS! --HG-- branch : trunk
2009-12-20*apply trinity style to whole sourceRat
*comment out all mangos to trinity defines *this will make merging a little harder, but code will be more clear --HG-- branch : trunk
2009-12-20Merge MaNGOS, Gossip System. Autor NoFantasy.win32
* DB support required * Closes #859 --HG-- branch : trunk
2009-12-19Implement SCRIPT_COMMAND_KILL_CREDIT (8). by NoFantasyn0n4m3
--HG-- branch : trunk
2009-12-18*Cleanup, proper indentation, and remove some wrong/irrelevant comments ↵maximius
copied from custom patches.. --HG-- branch : trunk
2009-12-17Some fixes for core 3.2.2an0n4m3
--HG-- branch : trunk
2009-12-17Fixed compile errors and some typosn0n4m3
--HG-- branch : trunk
2009-12-16MaNGOS merge: Mail System.win32
* Store loot in mail_loot_template indexed by mail template ids. * Implement proper creating mail text copy item from mail template based mail. * Move send functions to new MailDraft class from WorldSession. * Implement mails sending at player levelup. * Autor VladimirMangos, converted by me. --HG-- branch : trunk
2009-11-20*Some cleanup (mostly whitespace changes)maximius
--HG-- branch : trunk
2009-11-17*Convert some tabs to 4 spaces.maximius
--HG-- branch : trunk
2009-11-09*Fix memory leakz in reload gm_ticket command.Anubisss
--HG-- branch : trunk
2009-11-07Fix to Wintergrasp teleporters (Backout 5866), by Spp. Closes #90tartalo
*Wintergrasp: Move attacker questgivers to their corresponding campament, BySpp Closes #101 --HG-- branch : trunk
2009-11-01*Cleanup, fix many cases of unoptimized loops, potential crashes, ↵maximius
excessively large data types, unnecessary or wrong casts, non-standardized function calls, and so on.. *Proper Maexxna Web Spray locations (old locations sent players flying into the air) --HG-- branch : trunk
2009-10-31*Fix usage of grid removal state, thanks Sisifmaximius
--HG-- branch : trunk
2009-10-17*Massive cleanup redux.maximius
--HG-- branch : trunk
2009-10-17*Backed out changeset 3be01fb200a5maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and ↵maximius
some other cleanups by hand) *Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
2009-10-06*Utgarde Pinnacle: Svala fixes - Fix some crashes, complete ritual code and ↵maximius
change defines by enums, by Tartalo *Fix Acherus Flightmaster for Alliance, by MrSmite *Fix The Party's Over achievement (Prince Taldaram) & Implement Good Grief achievement (Maiden of Grief), by Tartalo *Fix certaint things entering the threat list and never leaving, bugging mob's HP regeneration (ie: Priest's Lightwell).. again. Thanks Gyullo. --HG-- branch : trunk
2009-09-21Reapply patch about changing modelid_a/h(2) values to modelid1..4, display ↵Kudlaty
ids are no longer incorrectly chosen based on player faction. --HG-- branch : trunk
2009-09-21* Add two flags for items with no stack limitKudlaty
* Added proper checking of faction based on seller for items with RequiredReputaionFaction=0 * This will allow 100% proper WDB data to be used Thx to Malcrom and Brian --HG-- branch : trunk
2009-09-18*[8475] fixed some gcc-warnings Author: balrokmaximius
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos *[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce *[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos *[8496] Resolve some #include cycles and unsafe code. * Common.h -> Threading.h -> Errors.h -> Common.h * Remove reduncdent #include "ByteBuffer.h" in headers * Remove redundent #include "Auth/BigNumber.h" in headers * Avoid multyply data copy at use some now dropped functions in BigNumber. * Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber. * Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos. *[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos. *[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy *[8506] Add check for IsAutoComplete() in SendPreparedQuest(). For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems. Some additional code cleanup. Author: NoFantasy *[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no> Thanks to Stryker and onkelz28! --HG-- branch : trunk
2009-09-14Backed out changeset d3fe2d6d504a (please test your patches thoroughly ↵maximius
before getting me to push them ogeraisi) --HG-- branch : trunk
2009-09-14*Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)maximius
--HG-- branch : trunk
2009-09-13*Event Hooks (OnLogin, OnLogout, OnPVPKill) by Hawthornemaximius
*Boss Emote Command for DB Scripts by XTElite1 --HG-- branch : trunk