Commit Graph
39 Commits
Author SHA1 Message Date
QAston 9542077c38 Core/Auras: Use recalculated aura max duration on spell hit for duration calculations. 2011-06-07 14:19:47 +02:00
QAston 3effdb2c23 Core/Auras: Add Aura::TryRefreshStackOrCreate function and remove stack checks from Aura::Create 2011-06-07 12:47:32 +02:00
QAston 506fedcfea Changes missing from last commit. 2011-05-31 20:28:36 +02:00
QAston 7b5b95966e Core/AuraScript: Add DoCheckAreaTarget hook to allow explicit area aura target selection. 2011-05-31 20:24:44 +02:00
QAston 0196192c7a Core/Auras: Fix a typo, which broke AuraEffect::ChangeAmount function 2011-05-31 16:20:27 +02:00
QAston 8ff2ed69bf Core/Auras: Fix *nix build 2011-05-31 16:03:27 +02:00
QAston f3428cbad4 Core/Auras: Fix a crash in Unit::RemoveAurasDueToSpellBySteal 2011-05-31 15:30:41 +02:00
QAston 2d3f4687e5 Core/Auras: Prevent assertion fail in AuraEffect::HandleEffect 2011-05-31 14:50:54 +02:00
QAston 14bc68a291 Missaved file, thanks to Shauren for catch. 2011-05-29 15:54:46 +02:00
QAston 3c93cccdb1 Core/Auras: Prevent assertion fail due code in AuraEffect::HandleAuraLinked, also improve the sync between auras linked by this aura type. 2011-05-29 15:49:32 +02:00
QAston 854438fb8a Core/Auras: add missing parenthesis. 2011-05-29 13:23:49 +02:00
QAston 42a20f14ef Core/Auras: Use existing aura object on aura reapply/stack increase instead of creating a new one.
You can hook on reapply/stack event by checking for AURA_EFFECT_HANDLE_REAPPLY aura handler mode, AURA_EFFECT_HANDLE_REAL is now not triggered on aura refresh/stack.
2011-05-29 13:18:47 +02:00
QAston fb1772e8c9 Core/AuraScripts: Allow to use AuraScript::GetTarget in AfterEffectRemove and AfterEffectApply hooks. 2011-05-26 17:44:07 +02:00
QAston 0762791754 Core/AuraScripts: Fix runtime error messages appearing in aura scripts when one hook is called from inside of another one. 2011-05-26 16:12:33 +02:00
QAston 79aa5233d7 Scripts/AuraScripts: Use AfterEffectApply and AfterEffectRemove hooks in scripts, where they fit better than On* hooks. 2011-05-25 19:12:41 +02:00
QAston 0eb89fc282 Core/SpellScripts: Better debug output on startup script validation. 2011-05-25 18:00:35 +02:00
QAston a1b8fd2054 Core/AuraScripts: Add AfterEffectRemove and AfterEffectApply hooks, to allow safe triggering of spellcasts or other actions which may call linked events while OnEffectApply and OnEffectRemove are still there for overriding the way effect is handled on target. 2011-05-25 17:13:32 +02:00
QAston ca8eb707d7 Core/Auras:
- Use safer order of calls in AuraEffect handlers (unit modification goes before any calls which may result in linked events execution)
 - Allow manual removal of further effects of an aura during aura removal (so Unit::RemoveAurasByType works well in such situations)
2011-05-25 15:13:55 +02:00
QAston 432136355e Scripts/Spell: Share some code for Incantner's Absorbtion script. 2011-05-15 19:04:09 +02:00
QAston 1121fcfb90 Core/Scripts: Remove hook GetAuraEffectTriggerTarget from CreatureAI.h
The hook was made for one obsolete script, which turned out to not work anyways.
2011-05-15 18:53:02 +02:00
QAston fcc57b2c95 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2011-02-12 11:03:06 +01:00
QAston fe2a848b8f Core/Auras: Temporary fix for Aura::UpdateTargetMap assertion failure. 2011-02-12 11:00:56 +01:00
QAston 0b2c6426e5 Core/Auras: Add some debug info to trac the reason of Aura::UpdateTargetMap crash. 2011-02-06 14:02:38 +01:00
QAston 6e08e51976 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2011-02-06 13:17:59 +01:00
QAston b5e78bf208 Core/Auras: Move code which uses polymorphism out of Aura constructor. 2011-02-06 13:17:29 +01:00
QAston e9bae2d0a0 Core/Auras: Prevent possible crash on SPELL_AURA_DAMAGE_SHIELD aura handler. 2011-02-04 03:14:01 +01:00
QAston f862db8b92 Core/Unit: Move code using polymorphism out of CharmInfo destructor - fixes issues introduced with 38ea569525. 2011-02-04 02:51:12 +01:00
QAston 38ea569525 Core/Unit: Remove code which depends on polymorphism from Unit class destructor (at destruction time virtual methods aren't working as excpected) 2011-02-04 01:23:49 +01:00
QAston d18193e52d Core/DynamicObjects: Change the way how dynamic objects are bound to their owners, fixes some crashes in Aura::GetOwner. 2011-02-04 00:27:43 +01:00
QAston 42d3130a56 Core/Auras:
Fix a crash with spell 33499 - BIG thanks to Shauren for finding the reason of this crash
 Corrections in managing stacked auras which change unit model.
2010-12-31 18:12:20 +01:00
QAston 1b18a0ac65 Core/Auras: Fix aura positivity check after rev bb4bd46d21. 2010-12-31 16:12:29 +01:00
QAston dd5a77bebc Core/Auras: Recheck aura presence on target after calling linked events in charm and vehicle aura effect handlers. 2010-12-31 15:37:44 +01:00
QAston 4eccbb81af Core/Auras: Recheck aura presence on target after calling linked events in aura effect handlers. Prevents undefined behavious when aura effect remove handler is called before apply handler is finished. 2010-12-31 14:39:18 +01:00
QAston c220fbbc45 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2010-12-31 12:52:37 +01:00
QAston bb4bd46d21 Core/Auras: Do not recheck aura positivity every aura effect apply/remove. 2010-12-31 12:50:17 +01:00
QAston 6c56f9e1b7 Merge branch 'master' of https://github.com/TrinityCore/TrinityCore 2010-12-30 19:47:28 +01:00
QAston 3fc69f8619 Core/Spells: Remove some incanter's absorbtion code forgotten in previous rev. 2010-12-30 19:44:13 +01:00
QAston 8cd2c73e45 Core/ScriptSystem: Add OnEffectManaShield and AfterEffectManaShield hooks to AuraScript class. Usage of these is the same as similar Absorb hooks.
Scripts: Move Incanter's Absorbtion script from Unit::CalcAbsorbResist to AuraScript.
2010-12-30 19:05:19 +01:00
QAston c8adcc95f9 Core/Unit: Move spell specific code from Unit::CalcAbsorbResist to AuraScripts. 2010-12-30 02:03:46 +01:00