Commit Graph

670 Commits

Author SHA1 Message Date
QAston
69b2900137 *Fix single target auras related crash
*Apply aura stacking rules to m_ownedAuras holder.

--HG--
branch : trunk
2010-01-16 15:12:21 +01:00
QAston
4374709a38 Backed out changeset 343bb9cc23ce - mistake fixed in last commit was the real problem.
--HG--
branch : trunk
2010-01-10 21:24:02 +01:00
QAston
334de07dfb Fixes #262. Do not keep area aura enemy targets in combat - 61248 doesn't bring whole northrend to Dalaran anymore:)
--HG--
branch : trunk
2010-01-10 17:49:35 +01:00
Rat
5b6079ea67 *cleaned up SharedDefines
--HG--
branch : trunk
2010-01-10 16:27:47 +01:00
silver1ce
eea50de960 now all aura updates are placed into one packet
--HG--
branch : trunk
2010-01-10 13:52:13 +02:00
QAston
c65aa45bc6 *Tabs to spaces
*Fix a type in CreatureEventAI.cpp from last rev

--HG--
branch : trunk
2010-01-10 02:12:02 +01:00
QAston
8e9d2cdf01 Update aura system:
* 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-10 01:23:15 +01:00
Astellar
39746981c7 Fixed Glyph of Lightwell.
--HG--
branch : trunk
2010-01-04 21:48:42 +03:00
n0n4m3
3c8c104781 Fixed spell Borrowed Time, by Metaphysical.Drama.
--HG--
branch : trunk
2010-01-01 06:56:39 +01:00
p0wer
c833ff59e1 Forgot to add the new header to SpellAuras.cpp in last commit. Sorry about that. Thanks Kiper.
--HG--
branch : trunk
2009-12-28 15:40:56 -06:00
p0wer
31e96989ea Fix Wintergrasp no fly zone to remove your mount instead of just giving a parachute but not dismounting you.
Also switch around the condition inside the if statement to fit the standard.

--HG--
branch : trunk
2009-12-28 15:25:54 -06:00
n0n4m3
28df19d205 Fixed spell Combustion
--HG--
branch : trunk
2009-12-26 17:38:54 +01:00
n0n4m3
aadbff5903 Revert not needed changes(this implemented soon)
--HG--
branch : trunk
2009-12-26 16:47:40 +01:00
n0n4m3
37d255d70f Removed SPELL_AURA_MOUNTED when BG end and player leave
--HG--
branch : trunk
2009-12-26 16:45:43 +01:00
n0n4m3
cd9f84aae5 Implement expected combat stop with friendly faction. by VladimirMangos
--HG--
branch : trunk
2009-12-26 09:43:39 +01:00
n0n4m3
621634642d Implement expire effect for spell 28169. by yavi, PSZ
--HG--
branch : trunk
2009-12-25 15:26:06 +01:00
n0n4m3
250a00cc1c Temporary revert 6743 commit. I fix this patch across 1-2 days.
--HG--
branch : trunk
2009-12-24 10:20:15 +01:00
n0n4m3
3fe0bc5254 Replaced time(NULL) on sGameTime.GetGameTime() this is used for better performance.
Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton.
2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs.

--HG--
branch : trunk
2009-12-23 08:04:10 +01:00
win32
636018ca7e Implement aura 304.
--HG--
branch : trunk
2009-12-21 15:52:02 +02:00
win32
c92fbc0dfb Cleanup in spell code
--HG--
branch : trunk
2009-12-21 15:45:28 +02:00
n0n4m3
c3ee3f537d Set use mtmaps by default, and cleanup some code in MapManager.
TODO: Set MapUpdate.Threads=0 in config, for full disable mtmaps, for correct work mtmaps, need ACE 5.7.2+, recommend 5.7.5

--HG--
branch : trunk
2009-12-21 07:58:19 +01:00
p0wer
0e8dd6d97e Fix Replenishment to apply 1% every 5 seconds rather then 4. Thanks to Morpheux for pointing it out.
--HG--
branch : trunk
2009-12-20 19:02:21 -06:00
p0wer
5ae3686d71 Fix whitespace. Sorry about that.
--HG--
branch : trunk
2009-12-20 18:51:58 -06:00
p0wer
34fe36ecac Fix Preserved Holly. Patch by laise. Closes #822.
--HG--
branch : trunk
2009-12-20 18:51:10 -06:00
n0n4m3
9f40c92fb4 Restore patch: No Fly Zone using Spell
--HG--
branch : trunk
2009-12-20 18:02:57 +01:00
n0n4m3
cc19e73174 Merge
--HG--
branch : trunk
2009-12-20 17:39:36 +01:00
n0n4m3
c4a270ed35 Fixed periodic damage from Seal of Vengeance, Seal of Corruption
--HG--
branch : trunk
2009-12-20 15:35:13 +01:00
Rat
6fe36efe0f *apply trinity style to whole source
*comment out all mangos to trinity defines
*this will make merging a little harder, but code will be more clear

--HG--
branch : trunk
2009-12-20 15:20:04 +01:00
win32
857fa2e4f6 fix warrning
--HG--
branch : trunk
2009-12-20 12:06:14 +02:00
n0n4m3
1d79bc51ea Implement player's pet resilience, also fix DoT case. by VladimirMangos and thx tali
--HG--
branch : trunk
2009-12-19 18:46:51 +01:00
maximius
dc1207139a *Cleanup, proper indentation, and remove some wrong/irrelevant comments copied from custom patches..
--HG--
branch : trunk
2009-12-18 13:41:30 -08:00
win32
5384413b04 replace hack code from spell 48391
--HG--
branch : trunk
2009-12-18 11:25:53 +02:00
n0n4m3
89656d5749 Restore some commits from trinitycore2 3.1.3
--HG--
branch : trunk
2009-12-17 13:07:38 +01:00
n0n4m3
772cf54fb5 Update Spell code for 322a. Part 2
--HG--
branch : trunk
2009-12-17 12:23:01 +01:00
Brian
2aa7f64622 * Implement support for shapeshit form 26 used by spell 24347
* Patch by azuritus -- Thanks
* Closes #542

--HG--
branch : trunk
2009-12-14 20:12:24 -07:00
spp
3a46634a20 Display DoT absorption and overkill in combat log. By MetaphysicalDrama, closes #614
--HG--
branch : trunk
2009-12-14 02:34:06 +01:00
spp
5d988a617f Fix Dancing Rune Weapon. By liberate, closes #365
--HG--
branch : trunk
2009-12-14 01:51:12 +01:00
spp
3fc61524ff Implementation of glyph of Power Word: Shield. By rammbonr5, closes #411
--HG--
branch : trunk
2009-12-13 11:35:12 +01:00
spp
a914a012fc Fix a possible crash with No Fly Zone and Parachute spells
--HG--
branch : trunk
2009-12-06 17:29:21 +01:00
spp
5647f54e0f Fly aura removal by No Fly Zone spell when it finish, not when it's unapplied. Closes #633
--HG--
branch : trunk
2009-12-04 03:43:22 +01:00
tartalo
d7262a6298 Implement No Fly Zone using Spell, by Spp. Needs db support. Closes #494
--HG--
branch : trunk
2009-12-01 11:43:57 +01:00
maximius
056c6fa680 *Cleanup, better cast for Bear/Dire Bear part of Furor.
--HG--
branch : trunk
2009-11-21 02:19:19 -08:00
maximius
654519d1a6 *Some cleanup (mostly whitespace changes)
--HG--
branch : trunk
2009-11-20 19:11:28 -08:00
maximius
c871b72579 *Better fix to #333
--HG--
branch : trunk
2009-11-19 20:06:49 -08:00
maximius
f4808f3ff5 *Merge TC1 r1737 and r1754 by BroodWyrn, fixes spells 45151, 45141, 46394 (Brutallus Burn), closes #179
--HG--
branch : trunk
2009-11-19 19:55:24 -08:00
maximius
4abed08f4d *Implement second part of Furor, closes #333.
*Add missed part of last commit (oops)

--HG--
branch : trunk
2009-11-19 04:36:20 -08:00
maximius
cb8c4d84e6 *Apply #325
--HG--
branch : trunk
2009-11-18 18:43:45 -08:00
maximius
53fa6322a8 *Hysteria now causes health loss. By manuel, thanks to QAston. Closes #323
--HG--
branch : trunk
2009-11-18 16:45:07 -08:00
maximius
929df85572 *Tenacity: correct way to keep hp% after spell being casted, by Spp, closes #240
--HG--
branch : trunk
2009-11-18 06:22:43 +01:00
maximius
d03c14e0b7 *Furor now stores and restores Energy properly, thanks lobuz
--HG--
branch : trunk
2009-11-17 20:50:38 -08:00