aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
AgeCommit message (Collapse)Author
2010-01-13Backed out changeset: 52e769d95f14XTZGZoReX
--HG-- branch : trunk
2010-01-13* Fix CRLF.XTZGZoReX
--HG-- branch : trunk
2010-01-13Fix Stealth Detection formula (Stealth auras are based on player level)thenecromancer
--HG-- branch : trunk
2010-01-13Removed all my commits for today, this is hack? really? okeyn0n4m3
--HG-- branch : trunk
2010-01-13Fixed insane damage from some spells in case of negative spell.n0n4m3
--HG-- branch : trunk
2010-01-13Generate rage when hitting critters/targets with absorbthenecromancer
--HG-- branch : trunk
2010-01-13Implement vehicles created by player mounts.thenecromancer
Original idea by Elmaster, packet research by Wrong, ty. --HG-- branch : trunk
2010-01-13Implement Sacred Shield bonus for Flash of Light, fix absorb being proced on ↵thenecromancer
taking heals --HG-- branch : trunk
2010-01-13Implement effect for aura #243 (temporary faction change)thenecromancer
--HG-- branch : trunk
2010-01-13Fix heal combat log event not displaying if heal was criticalthenecromancer
--HG-- branch : trunk
2010-01-13Allow state/effect immunities ignore whole spell when one effect is immunedthenecromancer
(Fixes getting part of CC auras with some immunities) --HG-- branch : trunk
2010-01-13Add support for additional passive for FORM_MOONKINthenecromancer
--HG-- branch : trunk
2010-01-13Apply haste to nonmagic class spells too. (For instance Arcane Missiles have ↵thenecromancer
dmgclass_none ) --HG-- branch : trunk
2010-01-12*Make sure that any aura (in case of aura remove linked auras for example) ↵QAston
won't survive Unit::RemoveAllAuras. --HG-- branch : trunk
2010-01-11Fixed typo.Astellar
--HG-- branch : trunk
2010-01-10* Make sure that aura is applied on unit before trying to remove it.QAston
--HG-- branch : trunk
2010-01-10*cleaned up SharedDefinesRat
--HG-- branch : trunk
2010-01-10dropped old code, which unused since new visibility system implementedsilver1ce
--HG-- branch : trunk
2010-01-10now all aura updates are placed into one packetsilver1ce
--HG-- branch : trunk
2010-01-10* Use pair<uint32, uint64> lists instead of <Aura*> lists in ↵QAston
Dispel/SpellSteal effects handlers (prevent reference to aura removed from unit) * Correctly fill EffectStealBeneficialBuff list with Stackable/Chargeable auras --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-08* Fix some more cases where movement flags were +'d together, instead of |'d.XTZGZoReX
--HG-- branch : trunk
2010-01-07Some Fixes for Earth Shield.Astellar
Now Dispel and Spellsteal effects will correctly dispel and steal Earth Shield's charges instead of entire aura. --HG-- branch : trunk
2010-01-07Fixes issue 152. Now Improved Water Shield works as intended.Astellar
1. Removed hardcoded proc chance for Lesser Healing Wave (all ranks had equal proc chance). 2. Added proc chance for Chain Heal (patch 3.2). 3. Fixed bug with Lesser Healing Wave and Chain Heal rolled default spell proc chance at first and then correct chance in dummy proc. So they have never ever proced for low ranks of the talent. 4. Removed consumption of charges (patch 3.2). --HG-- branch : trunk
2010-01-05DB update to have correct Windfury proc chance for already commited hack :)Astellar
--HG-- branch : trunk
2010-01-05Glyph of Blocking proc moved to DB.Astellar
--HG-- branch : trunk
2010-01-05Cleanups for Devastate and Glyph of Devastate.Astellar
--HG-- branch : trunk
2010-01-05Fixed Glyph of Sunder Armor.Astellar
--HG-- branch : trunk
2010-01-05Fixed previous commit. Now elemental is despawned when totem is replaced.Astellar
--HG-- branch : trunk
2010-01-01Fixed spell Ignite, by Metaphysical.Drama.n0n4m3
--HG-- branch : trunk
2010-01-01Fixed spell Glacier Rot, by Metaphysical.Drama.n0n4m3
--HG-- branch : trunk
2010-01-01Fixed spell Tundra Stalker, by Metaphysical.Drama.n0n4m3
--HG-- branch : trunk
2009-12-31Implemented function CheckPlayerCondition, it will be used before the player ↵_manuel_
enters in vehicles. Now vehicles Argent Warhorse and Argent Battleworg can't be used if the player dosen't have Argent Lance eqquiped. --HG-- branch : trunk
2009-12-29Implement Glyph of Divine Storm. Based on zajast's patch.Anubisss
--HG-- branch : trunk
2009-12-27Reverted commit 6762, because it breaks PetAI.maanuel
--HG-- branch : trunk
2009-12-26Update flag for spell Wrath in Eclipse. Correct buff should now be applied. ↵p0wer
Closes #976. --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
2009-12-26Fixed spell Ebon Plague, byThemris.n0n4m3
--HG-- branch : trunk
2009-12-26Partly revert 6760n0n4m3
--HG-- branch : trunk
2009-12-26Implement expected combat stop with friendly faction. by VladimirMangosn0n4m3
--HG-- branch : trunk
2009-12-25Apply code style for my prev. commit and fixed spell anti-magic zonen0n4m3
--HG-- branch : trunk
2009-12-25Correctly cast rank 2 mana regent triggred effect for 53228 and ranks. by ↵n0n4m3
Splinter --HG-- branch : trunk
2009-12-25Fixed leave combat by timer. by laisen0n4m3
--HG-- branch : trunk
2009-12-25Fixed bug in SetInCombatState and script boss_four_horsemenn0n4m3
--HG-- branch : trunk
2009-12-24Fixed spell Spirit Walk. by Oudenn0n4m3
--HG-- branch : trunk
2009-12-24Temporary revert 6743 commit. I fix this patch across 1-2 days.n0n4m3
--HG-- branch : trunk
2009-12-23Replaced time(NULL) on sGameTime.GetGameTime() this is used for better ↵n0n4m3
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-21Cleanup in spell codewin32
--HG-- branch : trunk