Commit Graph
89 Commits
Author SHA1 Message Date
kaelima b9e8694540 Core: Continued cleanup
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click f16df538ee Core: More codestyle cleanups 2011-06-12 01:47:45 +02:00
click 158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
QAston 76bb3ca21c Core/Auras: Call Aura::HandleAuraSpecificMods in Aura::SetStackAmount to preserve compatibility with older scripts. 2011-06-11 10:55:19 +02:00
QAston 3ec587e21e Core/Auras:
Make Aura::ModStackAmount(1) an equivalent of reapplying the aura
    Recalculate periodic aura timers on aura reapply.
2011-06-11 10:55:17 +02:00
QAston 0c3e99c450 Core/Auras: Move repeating code for aura packet creation to separate function. Fixes usage of SPELL_ATTR5_HIDE_DURATION attribute. 2011-06-08 10:41:32 +02:00
QAston b9e8e6d3b4 Core/Auras: Add functions for common actions on aura charges. 2011-06-07 17:26:27 +02:00
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
Shauren 97a5db68c2 Core/Auras:
* Fixed loading aura charges when they would exceed count set in SpellEntry while still remaining a valid value due to spell modifiers (that might not yet be active)
* Fixed refreshing aura charges when recasting the spell

Closes #1803
Closes #1786
Closes #1805
2011-06-03 21:30:50 +02:00
tobmaps e25c73978a Core/Spells: Drop dead code and fix some SQL updates 2011-06-01 01:58:32 +07:00
QAston 7b5b95966e Core/AuraScript: Add DoCheckAreaTarget hook to allow explicit area aura target selection. 2011-05-31 20:24:44 +02:00
QAston 8ff2ed69bf Core/Auras: Fix *nix build 2011-05-31 16:03:27 +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
SeTM fade2383cc Core/Spells: Implemented SPELL_ATTR5_HIDE_DURATION. Duration of auras with this attribute will not be displayed clientside 2011-05-28 21:53:32 +07:00
click 2d1b3ccaa1 Compile warnings fixes 2011-05-27 14:45:44 +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 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
tobmaps ea045b794c Core/Spells: Instant damage caused by Improved Devouring Plague should also heal caster
Closes #583
2011-05-15 00:55:41 +07:00
click a90e5be73d Core/Spells: Simplify the auratest for Druid T8 Restoration 4P Bonus effects 2011-05-13 17:25:41 +02:00
tobmaps 2c90c20596 Core/Misc: cleanups 2011-05-13 20:15:36 +07:00
Shocker 45f7aa1fd6 Core/Misc: Fix a memory leak in spell_dbc 2011-05-13 12:17:21 +03:00
Lopin 877b0a9270 Core/Spells: Fix T8 4P Restoration Set Bonus 2011-05-11 12:28:07 +03:00
Lopin 265fa2a3a7 Core/Spells: Fixes T10 2P Holy Paladin Set Bonus 2011-05-11 12:16:39 +03:00
Shocker e36e6f3281 Core/Spells: Fix Glyph of Freezing Trap 2011-05-02 18:36:08 +03:00
Shocker f8ca5aaa9b Core/Spells: Demonic Circle shouldn't remove combat from player.
Closes #1324
2011-04-29 23:05:29 +03:00
leak 1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
Shauren 8f565b7e13 Core/Auras: Do not save Incanter's Absorbtion proc to database, its unique way of stacking causes problems and aborts entire save transaction 2011-03-22 21:51:39 +01:00
Shauren 2f79b0f266 Core: Removed all double (and more) empty lines 2011-03-21 10:52:14 +01:00
Shauren e5347a3bda Core: Fixed warnings:
C4100: 'variable' : unreferenced formal parameter
C4701: potentially uninitialized local variable
C4389: '!=' : signed/unsigned mismatch
C4245: 'argument' : conversion from 'X' to 'Y', signed/unsigned mismatch
2011-03-08 16:42:00 +01:00
Machiavelli e07e20ffca Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf. 2011-02-20 20:16:34 +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 b5e78bf208 Core/Auras: Move code which uses polymorphism out of Aura constructor. 2011-02-06 13:17:29 +01:00
leak 137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Machiavelli 957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00
QAston 1b18a0ac65 Core/Auras: Fix aura positivity check after rev bb4bd46d21. 2010-12-31 16:12:29 +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 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
QAston ef968f4b15 Core/Unit: Big cleanup in Unit::CalcAbsorbResist
Core/AuraScript:
	Fix compile time check for AuraScript functions
	Remove AuraApplication from hook functions parameter list, use GetTarget() and GetTargetApplication() instead
	Add OnEffectAbsorb hook
Scripts: move handlers of Spell Deflection, Savage Defense, Primal Tenacity, Nerves of Steel, Astral shift from core to scripts.

--HG--
branch : trunk
2010-12-27 20:14:54 +01:00
QAston f4e46db38a Core/Auras: Add some asserions to hunt down reason of a crash in Aura::UpdateTargetMap. Thanks to Shauren for inspiration.
--HG--
branch : trunk
2010-12-26 00:14:13 +01:00
Shauren 928443d899 Core: Removed more operator workarounds for ACE_Singleton (missed previously because of inconsistent naming)
--HG--
branch : trunk
2010-12-23 23:25:44 +01:00
Shauren 0f3b9019a8 Core: Get rid of dirty operator workaround for ACE_Singleton class implementation
--HG--
branch : trunk
2010-12-22 21:25:23 +01:00
Shauren 5809c1fa3b Core/Auras: Fixed auras incorrectly stacking with different item casters introduced in r19f21916a940
Closes issue #5218.

--HG--
branch : trunk
2010-12-21 11:40:20 +01:00
Shauren 756ee5832b Core/Auras: Allow stacking of auras proced from different items
Closes issue #2296.

--HG--
branch : trunk
2010-12-20 11:04:48 +01:00
QAston 251f7f2121 Core/Auras: Add some assertions to make sure that AuraEffects are not added twice to UnitAuraEffect containers.
--HG--
branch : trunk
2010-12-19 19:43:53 +01:00
linencloth 59da698189 Core: Rename spell attributes, use more general names
--HG--
branch : trunk
2010-12-19 05:15:47 +01:00
Shauren 7196b880d6 Core/Spells: Fixed possible crashes in Shadow's Fate proc (71169) introduced in r91073dc6ace3
Core/AuctionHouse: Removed "using namespace std" and fixed crash in AuctionHouseMgr destructor

Closes issue #5132.
Closes issue #5134.

--HG--
branch : trunk
2010-12-18 23:16:55 +01:00
Shauren 82f45966fc Core/Unit: Renamed addUnitState/hasUnitState/clearUnitState to AddUnitState/HasUnitState/ClearUnitState
Core/Vehicles: Allow the vehicle to always damage the passenger (removed unneded dbc hacks from scripts)

--HG--
branch : trunk
2010-12-17 13:43:24 +01:00