aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
AgeCommit message (Collapse)Author
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-23Apply armor reduction for physical attacks before other calculations ( for ↵thenecromancer
correct block amount and etc..) --HG-- branch : trunk
2010-01-23Mergethenecromancer
--HG-- branch : trunk
2010-01-22*Prevent assertion fail in Unit::_AddAura after creature add to remove list.QAston
--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-21Do not apply SPELL_AURA_MOD_THREAT to negative threat changes (Eg. let Feint ↵thenecromancer
and alikes apply full effect) --HG-- branch : trunk
2010-01-20Allow spells with effect mechanic to allow apply other effects when effect ↵thenecromancer
with mechanic would be fail due to effect/state immunity. --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-20Change MOVE_RUN_BACK speed to match retail datathenecromancer
--HG-- branch : trunk
2010-01-20Fixes #420 fixed out-of-range group member's position update, which broken ↵silver1ce
after 7014f421c8 --HG-- branch : trunk
2010-01-19*Fix a memory leak with auras for cases when there are some spells casted on ↵QAston
unit during remove from world - all thanks go to debug assert fails, which you all love so much. --HG-- branch : trunk
2010-01-18*Remove some of no longer needed debug code.QAston
--HG-- branch : trunk
2010-01-18Auras with turn/move interrupt flags are now removed for creatures when they ↵silver1ce
turn/move, cleanup --HG-- branch : trunk
2010-01-18*Use std::map instead of UNORDERED_MAP for storing aura applications of an aura.QAston
--HG-- branch : trunk
2010-01-18*Add some debug info to trac reason of assertion fail in Unit destructor.QAston
--HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-16Implement speed reduction at creatures DoFleeToGetAssistance, by NoFantasy.n0n4m3
--HG-- branch : trunk
2010-01-16Fixed Lifebloom final crit, by PrinceCreed.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-15parse CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE opcode in proper waysilver1ce
--HG-- branch : trunk
2010-01-15Stop aura update packet spam, sorry about thatsilver1ce
--HG-- branch : trunk
2010-01-14Issue 62: DK talent Impuritythenecromancer
Note that there are probably more of things having just "dummy effect". This way to get them is quite slow (auras are at least sorted by their type) and probably some sort of modifier could be stored for them --HG-- branch : trunk
2010-01-13* Merge.XTZGZoReX
--HG-- branch : trunk
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