aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
AgeCommit message (Collapse)Author
2010-05-27Fix Vigilance.Trazom62
Implements Glyph of Vigilance. Fixes issue #1134. Thanks Bodompelle for the idea, even thought the fix is rather different. --HG-- branch : trunk
2010-05-20Script HoR instance. 1st part.Trazom62
Fixes issue #1311. - Intro event. - 10 waves including Falric and Marwyn. - Script based on proposal of Synric on trinitycore forum (submitted by Skarabex on GC). --HG-- branch : trunk
2010-05-16Fix spell Improved Devouring Plague's damage.Anubisss
Core part of the patch by PrinceCreed. SQL part of the patch by sinka.isi. Fixes issue #1965. Closes issue #1004. --HG-- branch : trunk
2010-04-29Warning FixesSpp
Code Style cleanup Fix linux compile --HG-- branch : trunk
2010-04-20Fix spellaura-crashclick
Fixes #1767, closes #1772 (and the other ones already merged into it) --HG-- branch : trunk
2010-04-19More warning removal (Some code modifications and cleanup when needed)Spp
--HG-- branch : trunk
2010-04-19Remove LOTS of compile warningsSpp
--HG-- branch : trunk
2010-04-11Fix Aura::CheckTarget returns. Thanks SppTartalo
--HG-- branch : trunk
2010-04-11Add Aura::CheckTarget() to check Alterac Valley buff targets.Tartalo
Merge from old TC-2.4.3 repository, original patch by krz. Fixes issue #954. --HG-- branch : trunk
2010-04-08Code Style (game + scripts only):Spp
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
2010-04-07Code Style (game + scripts only):Spp
">=" --> " >= " (when needed) " >=" --> " >=" ">= " --> ">= " "<=" --> " <= " (when needed) " <=" --> " <=" "<= " --> "<= " " ==" --> " ==" "== " --> "== " --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"( " --> "(" " )" --> ")" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"if(" --> "if (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"while(" --> "while (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"for(" --> "for (" --HG-- branch : trunk
2010-04-07Code Style: Remove trailing spacesSpp
--HG-- branch : trunk
2010-04-07Code Style: tab to spacesSpp
--HG-- branch : trunk
2010-03-26A visually better way to handle Avenger Wrath blocking of immunity shields.Xanadu
--HG-- branch : trunk
2010-03-19Fixed a crash. Closes issue #1182.Xanadu
--HG-- branch : trunk
2010-03-18* Remove typeid check and fix cast target for Improved Fear. Patch by ↵XTZGZoReX
jesper.vortex. * Closes #946. --HG-- branch : trunk
2010-03-17CleanupXanadu
--HG-- branch : trunk
2010-03-17Fixed Drain Soul increased damage for targets below 25% HP. Closes issue ↵Xanadu
#394. Closes issue #748. Closes issue #938. Rejoice, new era of server-side spells has begun! --HG-- branch : trunk
2010-03-07Some Creature* casts moved to new ToCreature.raczman
Added const Creature* ToCreature() --HG-- branch : trunk
2010-03-07Added new type-safe cast functions.raczman
This, when properly used, should get rid of most memory corruption issues, currently, casting types C-style with no checks leads to some abstract crashing. Functionality is same as with dynamic_cast<>, but with no RTTI check - so when casting into invalid type you will receive NULL, and most probably crash. At the same time, i took the liberty to convert most Player* casts to ToPlayer(). Still needs crapload of casts being moved to new facility. --HG-- branch : trunk
2010-03-04Fix Shadow Affinity. Patch by Ouden. Fixes issue #988.p0wer
--HG-- branch : trunk
2010-02-18Treat rune cooldowns as timers and not as remaining tick countsthenecromancer
Implement support for modifiers changing rune regeneration rate Apply all spells from Improved Unholy Aura --HG-- branch : trunk
2010-02-15Removed stupid/not needed file Spellid.h.n0n4m3
--HG-- branch : trunk
2010-02-14* Core switch to client 3.3.2 (11403)Brian
* Credits (in no particular order) to: * n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo, * thenecromancer, Xanadu, Trazom, Zor, kiper * Additional credits to: * TOM_RUS and NoFantasy from MaNGOS * Thanks for testing Aokromes and XTElite1 * SoTA still needs some work, but is very playable (huge thanks to raczman and * kiper) * To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the * last rev you are on * and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world * DBs * Known problem with guild banks. --HG-- branch : trunk
2010-02-05Yet more cleanup, mostly in the script system. This should conclude the ↵Xanadu
script integration into core. --HG-- branch : trunk
2010-01-24Remove SpellChannelInterruptFlags definitions which were duplicate of ↵QAston
SpellAuraInterruptFlags, move IsRemoved check to Aura::UpdateTargetMap --HG-- branch : trunk
2010-01-24*Bring back one unintentionally removed check in Aura::UpdateOwnerQAston
*Remove not blizzlike hack for Vanish (it should not remove delayed spells from player) --HG-- branch : trunk
2010-01-24*Do not keep area aura targets in combat with aura ownerQAston
*Add some safety checks to area aura target map update. --HG-- branch : trunk
2010-01-23*Remove Death runes from Reaping/Blood of the North/Death Rune Mastery when ↵QAston
talent aura is removed. --HG-- branch : trunk
2010-01-22*Run grid searches for area auras every 500ms instead of every unit updateQAston
*Fix a stupid typo which caused memory leak in Unit::RemoveOwnedAura --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-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16*Fix single target auras related crashQAston
*Apply aura stacking rules to m_ownedAuras holder. --HG-- branch : trunk
2010-01-10Backed out changeset 343bb9cc23ce - mistake fixed in last commit was the ↵QAston
real problem. --HG-- branch : trunk
2010-01-10Fixes #262. Do not keep area aura enemy targets in combat - 61248 doesn't ↵QAston
bring whole northrend to Dalaran anymore:) --HG-- branch : trunk
2010-01-10*cleaned up SharedDefinesRat
--HG-- branch : trunk
2010-01-10now all aura updates are placed into one packetsilver1ce
--HG-- branch : trunk
2010-01-10*Tabs to spacesQAston
*Fix a type in CreatureEventAI.cpp from last rev --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-04Fixed Glyph of Lightwell.Astellar
--HG-- branch : trunk
2010-01-01Fixed spell Borrowed Time, by Metaphysical.Drama.n0n4m3
--HG-- branch : trunk
2009-12-28Forgot to add the new header to SpellAuras.cpp in last commit. Sorry about ↵p0wer
that. Thanks Kiper. --HG-- branch : trunk
2009-12-28Fix Wintergrasp no fly zone to remove your mount instead of just giving a ↵p0wer
parachute but not dismounting you. Also switch around the condition inside the if statement to fit the standard. --HG-- branch : trunk
2009-12-26Fixed spell Combustionn0n4m3
--HG-- branch : trunk
2009-12-26Revert not needed changes(this implemented soon)n0n4m3
--HG-- branch : trunk
2009-12-26Removed SPELL_AURA_MOUNTED when BG end and player leaven0n4m3
--HG-- branch : trunk