aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
AgeCommit message (Collapse)Author
2010-01-23Remove Battle Shout/Blessing of Might hackthenecromancer
Add table holding stacking masks for non-target/caster related stacking rules Aura bounce check is still to be done --HG-- branch : trunk
2010-01-23Implement QueryResult_AutoPtr type which is ACE's reference counted ↵Anubisss
auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers. Use this auto_ptr for every DB queries(except QueryNamedResult yet). This patch guarantees NO memory leaks from QueryResult pointers. Thanks to raczman for the idea and for the helping to make this patch. --HG-- branch : trunk
2010-01-21Fix build.Xanadu
--HG-- branch : trunk
2010-01-20* Restore Dalaran no fly zone lost in last commitBrian
--HG-- branch : trunk
2010-01-20* Wintergrasp removal -- part 4: "How deep does the cancer run?"Brian
--HG-- branch : trunk
2010-01-20Change GetSpellSpecific() to have SpellEntry argument instead of ID, this ↵thenecromancer
saves lookups in spellstore for entries we already have. --HG-- branch : trunk
2010-01-19*Integrate Script system to CoreRat
-added ScriptMgr for loading scripts -removed bindings -moved script system to src/game -moved scripts to src/scripts -VC project files updated -cmakes updated (not 100% done yet) NOTE to Devs: -file locations changed -precompiled renamed to ScriptedPch -ecsort_ai renamed to ScriptedEscortAI -follower_ai renamed to ScriptedFollowerAI -guard_ai renamed to ScriptedGuardAI -simple_ai renamed to ScriptedSimpleAI -sc_creature renamed to ScriptedCreature -sc_gossip renamed to ScriptedGossip -sc_instance renamed to ScriptedInstance *use the new headers in scripts, thank you NOTE to ALL: cmake not fully tested, please report any errors with it could make creashes, incompability USE AT YOUR OWN RISK before further tests!! --HG-- branch : trunk
2010-01-18*Use std::map instead of UNORDERED_MAP for storing aura applications of an aura.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-18Corrected issues with stacks, thanks to QAston._manuel_
--HG-- branch : trunk
2010-01-17Blessing of Might and Battle Shout can't be at the same time, fixed by ↵_manuel_
naitsabes.s and me. Thanks to QAston and thenecromancer. --HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-13* Fix CRLF.XTZGZoReX
--HG-- branch : trunk
2010-01-13Some more casting requirementsthenecromancer
*Not allow cast on invisible/stealth target if not detected *Not allow banish/cyclone tapped unit *Not allow pickpocket players and units that can never be pickpocketed *Not allow disarm unarmed units --HG-- branch : trunk
2010-01-11Fixed spell 44401 (Missile Barrage). Thanks to QAston._manuel_
--HG-- branch : trunk
2010-01-10Addition to previous commit.Astellar
--HG-- branch : trunk
2010-01-10Fixed quest Catch and Release, some fixes for Tag Murloc spell.Astellar
--HG-- branch : trunk
2010-01-10*cleaned up SharedDefinesRat
--HG-- branch : trunk
2010-01-10*fix spell: Tag Murloc (30877)Rat
--HG-- branch : trunk
2010-01-10*Implement attribute SPELL_ATTR_NEGATIVE_1QAston
*Remove unneeded hacks from SpellMgr::_isPositiveSpell *Missing ! in prev commit. --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-08Fixed typo by Corfiik. Now talent Tidal Waves should work._manuel_
--HG-- branch : trunk
2010-01-07Fix Essence of Wintergrasp apply conditions removed in 3.2.2 upgradeSpp
--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-29* Remove useless CheckDB functionality. This does not belong in core in any ↵XTZGZoReX
shape or form. --HG-- branch : trunk
2009-12-28Fix Tidal Waves proc amount. After casting (Lesser) Healing Wave twice the ↵p0wer
buff will be removed. --HG-- branch : trunk
2009-12-26Fixed spell Ebon Plague, byThemris.n0n4m3
--HG-- branch : trunk
2009-12-21* Commented useless debug output for spell_script_target andBrian
* spell_target_position. If someone REALLY wants to see which ones are * missing, they can uncomment them for a debug compile. * Can finally start the core in debug mode and get useful data... --HG-- branch : trunk
2009-12-21* Commented out a useless debug line for spell chain data since it is readBrian
* from DBC and can't be fixed with the current way the core handles * spell chains --HG-- branch : trunk
2009-12-20Restore patch: No Fly Zone using Spelln0n4m3
--HG-- branch : trunk
2009-12-17Update Spell code for 322a. Part 2n0n4m3
--HG-- branch : trunk
2009-12-04Fly aura removal by No Fly Zone spell when it finish, not when it's ↵spp
unapplied. Closes #633 --HG-- branch : trunk
2009-12-01Implement No Fly Zone using Spell, by Spp. Needs db support. Closes #494tartalo
--HG-- branch : trunk
2009-11-27Apply #456Kudlaty
Removed Essence of Wintergrasp from OutdoorPvP and implementation using the spell system. This will affect Wintergrasp and all Northrend zones, dungeons and raids. Note: need database support. Patch by Spp --HG-- branch : trunk
2009-11-20*Some cleanup (mostly whitespace changes)maximius
--HG-- branch : trunk
2009-11-19*Some cleanup.maximius
--HG-- branch : trunk
2009-11-17*Cleansing Totem Pulse at cast, thanks lobuzmaximius
--HG-- branch : trunk
2009-11-17*Correct Divine Storm heal, thanks lobuzmaximius
--HG-- branch : trunk
2009-10-22*Ovverride value of Heroism's excludeCasterAuraSpell, because DBC has ↵Anubisss
crap(0) value(interesting that Bloodlust has correct value). *This fix the bug that Heroism doesn't cast Exhaustion to the target. --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-16*Allow Wintergrasp Spirit Healers to cast their spell, by manuelmaximius
--HG-- branch : trunk
2009-10-09*Blackfathom Deeps - Event: Aku'mai, by Tartalomaximius
*Split Personality Achivement, by Destalker *Halls of Lightning Fixes, by Destalker Volkhan fixes + Achievement Ionar Fix - without this he resets each time he is invisible, spamming sparks Arcing Burn - should be a debuff (and stackable, stackable part NYI :/) *Naxxramas - Thaddius - the aura shall affect only the character without the proper aura, by Trazom *Naxxramas - Kelthuzad - some timer adjustments (may need verification or tweaking) by Cass *Merges by Stryker, thanks to all authors and testers. [8458] Re-implement SPELL_AURA_MOD_TARGET_ARMOR_PCT in more porper way for weapon dependent cases. Author: VladimirMangos [8459] Avoid mutiply apply weapon dependent armor penetration bonus for each weapon. Author: VladimirMangos [8529] check rune cost only if spell has PowerType == POWER_RUNE. Patch provided by yavi. Author: Ambal [8532] Fixed situation where some items like 42947 were not giving spell power bonus. By: Ambal [8533] Not remove timed quest and correctly fail when time runs out. Add function to remove timed quest instead of direct access to set. Author: NoFantasy [8536] Fixed spell 62776. By: Ambal [8539] Check pet aura range at area aura update. By: Ambal [8546] Implement battleground bonusweekends call to arms. Also fix typo in auctionmgr. Author: balrok [8547] Implemented scriptcall: CorpseRemoved(uint32 & /*respawnDelay*/) it will be called when the corpse of the scripted creature get's removed, it's possible to adjust the next respawn inside the script. Author: balrok [8561] Replace another auras code call by explicit code [8566] avoid singleton-lock when accessing BattleGroundMGR::isBGWeekend() Proposed by vladimir. Comitter: balrok --HG-- branch : trunk
2009-09-23*[Fix] fly in Northend without Cold Weather Flying if summoned, by Sppmaximius
--HG-- branch : trunk
2009-09-16* Changed the logging for missing spell_script_target / spell_script_positionroot@trinity
* entries in DB to "debug" level. * Set the default level for DBLogLevel in trinitycore.conf.dist to 2 "detail" --HG-- branch : trunk
2009-09-11* [8456] Implement area check for SPELL_ATTR_EX6_NOT_IN_RAID_INSTANCE ↵maximius
Author: VladimirMangos --HG-- branch : trunk
2009-09-10*Add back Themris' cleansing totem patch, accidentally removed in r4816maximius
--HG-- branch : trunk
2009-09-04*Fix a bug that druid's flight form is not removed after entering wintergrasp.megamage
--HG-- branch : trunk
2009-09-02 [8449] Deprecate healing/damage item mods and merge internal data in to ↵megamage
spell power. Author: VladimirMangos * Report at loading about deprecated ITEM_MOD_SPELL_HEALING_DONE and ITEM_MOD_SPELL_DAMAGE_DONE and drop support code. * Merge healing/damage base spell bonus fields and function to spell power field/function. --HG-- branch : trunk