Commit Graph

1280 Commits

Author SHA1 Message Date
n0n4m3
f7ad3aefc8 Removed all my commits for today, this is hack? really? okey
--HG--
branch : trunk
2010-01-13 19:11:46 +03:00
n0n4m3
0bcf3b32f1 Fixed insane damage from some spells in case of negative spell.
--HG--
branch : trunk
2010-01-13 14:31:57 +03:00
QAston
758baae61b *Make sure that any aura (in case of aura remove linked auras for example) won't survive Unit::RemoveAllAuras.
--HG--
branch : trunk
2010-01-12 00:14:09 +01:00
Astellar
879948260f Fixed typo.
--HG--
branch : trunk
2010-01-11 20:01:16 +03:00
QAston
ef24d90472 * Make sure that aura is applied on unit before trying to remove it.
--HG--
branch : trunk
2010-01-10 20:09:44 +01:00
Rat
5b6079ea67 *cleaned up SharedDefines
--HG--
branch : trunk
2010-01-10 16:27:47 +01:00
silver1ce
74bd8084a0 dropped old code, which unused since new visibility system implemented
--HG--
branch : trunk
2010-01-10 16:33:14 +02:00
silver1ce
eea50de960 now all aura updates are placed into one packet
--HG--
branch : trunk
2010-01-10 13:52:13 +02:00
QAston
e3ff6145ee * Use pair<uint32, uint64> lists instead of <Aura*> lists in Dispel/SpellSteal effects handlers (prevent reference to aura removed from unit)
* Correctly fill EffectStealBeneficialBuff list with Stackable/Chargeable auras

--HG--
branch : trunk
2010-01-10 12:08:58 +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
XTZGZoReX
c3e02980ef * Fix some more cases where movement flags were +'d together, instead of |'d.
--HG--
branch : trunk
2010-01-08 07:59:39 +01:00
Astellar
c239c380df Some Fixes for Earth Shield.
Now Dispel and Spellsteal effects will correctly dispel and steal Earth Shield's charges instead of entire aura.

--HG--
branch : trunk
2010-01-07 23:31:46 +03:00
Astellar
b0e7dc95a4 Fixes issue 152. Now Improved Water Shield works as intended.
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-07 00:24:58 +03:00
Astellar
082e7bac47 DB update to have correct Windfury proc chance for already commited hack :)
--HG--
branch : trunk
2010-01-05 21:08:44 +03:00
Astellar
a886552c85 Glyph of Blocking proc moved to DB.
--HG--
branch : trunk
2010-01-05 15:52:44 +03:00
Astellar
53a7a7bd48 Cleanups for Devastate and Glyph of Devastate.
--HG--
branch : trunk
2010-01-05 14:36:06 +03:00
Astellar
a93b987637 Fixed Glyph of Sunder Armor.
--HG--
branch : trunk
2010-01-05 12:09:50 +03:00
Astellar
a4895ce876 Fixed previous commit. Now elemental is despawned when totem is replaced.
--HG--
branch : trunk
2010-01-05 02:42:40 +03:00
n0n4m3
875fb3500c Fixed spell Ignite, by Metaphysical.Drama.
--HG--
branch : trunk
2010-01-01 06:59:57 +01:00
n0n4m3
bec67fd68e Fixed spell Glacier Rot, by Metaphysical.Drama.
--HG--
branch : trunk
2010-01-01 06:54:50 +01:00
n0n4m3
6d553237d5 Fixed spell Tundra Stalker, by Metaphysical.Drama.
--HG--
branch : trunk
2010-01-01 06:54:09 +01:00
_manuel_
ebe7b29987 Implemented function CheckPlayerCondition, it will be used before the player 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-31 17:59:56 -03:00
Anubisss
6b997f35af Implement Glyph of Divine Storm. Based on zajast's patch.
--HG--
branch : trunk
2009-12-29 23:53:00 +01:00
maanuel
bdc8ba8b0c Reverted commit 6762, because it breaks PetAI.
--HG--
branch : trunk
2009-12-27 02:23:30 -03:00
p0wer
7cad1ebb44 Update flag for spell Wrath in Eclipse. Correct buff should now be applied. Closes #976.
--HG--
branch : trunk
2009-12-26 19:50:25 -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
a5110c3382 Fixed spell Ebon Plague, byThemris.
--HG--
branch : trunk
2009-12-26 14:05:55 +01:00
n0n4m3
4638c8be9f Partly revert 6760
--HG--
branch : trunk
2009-12-26 11:57:57 +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
4dae4e4083 Apply code style for my prev. commit and fixed spell anti-magic zone
--HG--
branch : trunk
2009-12-25 18:28:29 +01:00
n0n4m3
0b23087991 Correctly cast rank 2 mana regent triggred effect for 53228 and ranks. by Splinter
--HG--
branch : trunk
2009-12-25 15:39:06 +01:00
n0n4m3
cc366fdc57 Fixed leave combat by timer. by laise
--HG--
branch : trunk
2009-12-25 15:23:34 +01:00
n0n4m3
2e1c488241 Fixed bug in SetInCombatState and script boss_four_horsemen
--HG--
branch : trunk
2009-12-25 11:40:48 +01:00
n0n4m3
7b19bea10f Fixed spell Spirit Walk. by Ouden
--HG--
branch : trunk
2009-12-24 13:01:39 +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
c92fbc0dfb Cleanup in spell code
--HG--
branch : trunk
2009-12-21 15:45:28 +02:00
n0n4m3
81db9de678 Fixed Eclipse
--HG--
branch : trunk
2009-12-20 17:10:45 +01:00
n0n4m3
f4a415badf Fixed spell Ardent Defender
--HG--
branch : trunk
2009-12-20 17:00:39 +01:00
n0n4m3
d4aaa3d3b2 Fixed Divine Aegis
--HG--
branch : trunk
2009-12-20 15:20:03 +01:00
n0n4m3
18d5940f5c merge
--HG--
branch : trunk
2009-12-20 06:00:39 +01:00
Paradox
a21f0da24f fix CRLF in last 3-4 commits, take note, new devs using windows need to configure the win32text extension properly before pushing anything else.
--HG--
branch : trunk
2009-12-19 23:42:19 -05:00
p0wer
9218ebce9d Fix Tenacity to increase heal %. Patch by corfen. Closes #825.
--HG--
branch : trunk
2009-12-19 22:17:19 -06:00
n0n4m3
5a3b3d83ee Fixed some typos and revert one commit
--HG--
branch : trunk
2009-12-19 19:46:07 +01:00
n0n4m3
50bf68e099 send SMSG_PARTYKILLLOG when player kills an unit. by balrok
--HG--
branch : trunk
2009-12-19 19:13:18 +01: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
n0n4m3
57bdbdc0ca Add function to update orientation of unit (for both server andclient). by NoFantasy
--HG--
branch : trunk
2009-12-19 17:48:45 +01:00
n0n4m3
2925dfcfc4 Add own function to send AI_Reaction packet. by NoFantasy
--HG--
branch : trunk
2009-12-19 17:43:47 +01:00