aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
AgeCommit message (Collapse)Author
2010-02-04*Way more correct way of selecting caster and target for Periodic Trigger auras.QAston
--HG-- branch : trunk
2010-02-04*Implement spell target type TARGET_GAMEOBJECT_NEARBY_ENTRYQAston
--HG-- branch : trunk
2010-02-03Some changes to immunitiesthenecromancer
--HG-- branch : trunk
2010-02-02*Drop spell_stack_masks tableQAston
*Add spell_group_stack_rules table (for more info see wiki) *The table is maintained by core team *Move some spell specific out of core to the new table --HG-- branch : trunk
2010-02-01*drop spell_elixir tableQAston
*add spell_group table for storage of groups of spell (kinda obvious, isn't it?) and populate the table with converted spell_elixir table data *the table is going to be maintained by core team *fix percentage display at spell_ranks table loading *add TARGET_UNIT_CASTER to allowed learn spell targets in npc_trainer table, thanks to Aokromes for noticing the issue. --HG-- branch : trunk
2010-01-31*Add support for spells in npc_trainer table with multiple ↵QAston
SPELL_EFFECT_LEARN_SPELL, this fixes problems with learning such spells from trainers. --HG-- branch : trunk
2010-01-30*Update spell_script_target table validation.QAston
--HG-- branch : trunk
2010-01-30*Add error checks at spell_required table loadingQAston
*Allow spell_required table to store more than 1 spell learn requirement for a spell *spell_required table data is removed from world.sql and since this commit the data for it should be maintained by db project you're using. --HG-- branch : trunk
2010-01-29*Fix build with GCC, thanks to Brian.QAston
--HG-- branch : trunk rename : sql/updates/7234_world_spell_ranks.sql => sql/updates/7236_world_spell_ranks.sql
2010-01-29*Typofix - Journeyman - rank 2 Apprentice - rank1QAston
--HG-- branch : trunk rename : sql/updates/7232_world_spell_ranks.sql => sql/updates/7233_world_spell_ranks.sql
2010-01-29*Move spell rank extractor out of core, use sql table instead for easier ↵QAston
maintaining of dependant database data. --HG-- branch : trunk
2010-01-25*Some cleanup in SharedDefinesQAston
*Implement spell target modes 96-103, 91, 92 --HG-- branch : trunk
2010-01-24Fix Frost Trap Aura spamming log due to nonexistent triggered spellXanadu
--HG-- branch : trunk
2010-01-24*merge ScriptMgr::LoadOverridenDBCData to SpellMgrLoadSpellCustomAttr, patch ↵Rat
by Azuritus, closes issue #444 --HG-- branch : trunk
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