Commit Graph
1600 Commits
Author SHA1 Message Date
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
Trazom62 a0f7762cab Fix Drakarri Colossus: mojo stay passive only if colossus still alive
--HG--
branch : trunk
2010-01-09 14:19:00 +01:00
Trazom62 41a19a5557 Fix Script: add missing initialization. Fixes #216
--HG--
branch : trunk
2010-01-09 14:18:06 +01:00
Trazom62 12f31a9e87 *Fix Drakarri Colossus event not starting
- didn't started if the colossus was spawn after the mojo
- avoid hard-coded coord

--HG--
branch : trunk
2010-01-09 13:05:47 +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
_manuel_ 44de20cf3f Fixed typos in scripts from Trial of the Champion. Thanks to Spp.
--HG--
branch : trunk
2010-01-08 01:22:26 -03:00
_manuel_ d4b9cafb18 Deadmines: Implemented Mr.Smite chest event.
--HG--
branch : trunk
2010-01-07 20:47:34 -03:00
silver1ce 15618563ef merge
--HG--
branch : trunk
2010-01-06 12:27:52 +02:00
silver1ce f82d5cb3fc fixed the bug that GetVmapHeight returns incorrect height on terrains(flying units fall below map etc)
also unlocked max ray lenght for getHeight, by default it's 10 yards

--HG--
branch : trunk
2010-01-06 12:15:02 +02:00
_manuel_ 0bd566213a Halls of Stone: Prevents Brann Bronzebeard stuck in combat.
--HG--
branch : trunk
2010-01-05 21:49:48 -03:00
Astellar 21c9c6d5cc uint8 does not allow to store values like 1000 and 2000. It is too small to do it.
--HG--
branch : trunk
2010-01-05 10:10:27 +03:00
_manuel_ cb9cb364d1 Shadowfang Keep: Implemented event after Boss Fenrus the Devourer death.
--HG--
branch : trunk
2010-01-04 23:13:17 -03:00
_manuel_ baf0cfa6d8 Zul'Farrak: Support for quest "The Spider Gold" q2936.
--HG--
branch : trunk
2010-01-04 00:08:00 -03:00
_manuel_ c4cbd1d18d Blackfathom Deeps: Implemented Morridune event.
--HG--
branch : trunk
2010-01-03 22:38:26 -03:00
p0wer 2ceecaaa4d Fix GO crash in boss_arlokk script.
Remove irrelevant TODO comment.

--HG--
branch : trunk
2010-01-03 14:32:48 -06:00
_manuel_ 8d051d9645 Blackfathom Deeps: Implemented event related with gameobject Fire of Aku'mai.
--HG--
branch : trunk
2010-01-03 15:55:42 -03:00
_manuel_ c492488d58 Redridge Mountains: Fixed complete problem for quest "Missing in action" q219.
--HG--
branch : trunk
2010-01-02 02:47:31 -03:00
_manuel_ ac340450e7 Prevent crash in ShadowfiendAI.
--HG--
branch : trunk
2010-01-02 02:22:47 -03:00
_manuel_ 64aa9b3a6f Redridge Mountains: Support for quest "Missing in action" Q219.
--HG--
branch : trunk
2010-01-02 01:18:44 -03:00
n0n4m3 70f452a838 Fixed Glyph of Shadowfiend, by destros.
--HG--
branch : trunk
2010-01-01 07:06:47 +01:00
n0n4m3 6d553237d5 Fixed spell Tundra Stalker, by Metaphysical.Drama.
--HG--
branch : trunk
2010-01-01 06:54:09 +01:00
_manuel_ c06e2401a9 Duskwood: Corrected wrong spell. Author: kb_z
--HG--
branch : trunk
2009-12-31 02:13:30 -03:00
Anubisss bdd30a6865 Fix 3 memleakz.
--HG--
branch : trunk
2009-12-30 20:24:18 +01:00
n0n4m3 b757b7e201 Missing changes...
--HG--
branch : trunk
2009-12-30 18:59:51 +01:00
n0n4m3 72b7c5c69d Added script support for quest The Valiant's Challenge(13699), by alister
--HG--
branch : trunk
2009-12-30 18:42:55 +01:00
Anubisss 0d76a29101 Some typos again in Moroes.
--HG--
branch : trunk
2009-12-30 17:03:14 +01:00
Anubisss c2f891e5a2 Fix a typo in Moroes' script.
--HG--
branch : trunk
2009-12-30 15:18:28 +01:00
n0n4m3 ba35715676 Fixed some crash, cause instance scripts
--HG--
branch : trunk
2009-12-30 08:40:11 +01:00
Anubisss 1a51f16434 Rewrite script of Phase Hunter. Now the mob has a more better AI and also this patch fixes quest Recharging the Batteries.
--HG--
branch : trunk
2009-12-30 05:00:56 +01:00
_manuel_ 0a105ddade Removed tabs.
--HG--
branch : trunk
2009-12-27 22:42:56 -03:00
_manuel_ 5aa7a95314 Trial of the Champion: Rewrite of bosses Eadric and Paletress.
--HG--
branch : trunk
2009-12-27 22:28:28 -03:00
p0wer 8107c2e2ae Fix wrong spellid in npc_snake_trap_serpents. Thanks blackmanos. Closes #980.
--HG--
branch : trunk
2009-12-26 19:37:25 -06: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
maanuel 3796af3658 Fixed typo.
--HG--
branch : trunk
2009-12-26 03:44:59 -03:00
maanuel a83ec4536c Trial of the Champion: Rewrite of Boss Black Knight script and Raisen Ghoul script.
--HG--
branch : trunk
2009-12-26 03:25:06 -03:00
p0wer 458588f726 * Fix quest "Death's Challenge". When dueling an initiate, you can now attack them.
* Thanks to Visagalis on pointing this out.

--HG--
branch : trunk
2009-12-25 15:15:12 -06:00
n0n4m3 94efb529eb Fixed typo
--HG--
branch : trunk
2009-12-25 18:31:42 +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 03d3f600af Implemented basic support instance Trial of the Champion. original autor Syntec, thx destros.
--HG--
branch : trunk
2009-12-25 17:14:02 +01:00
n0n4m3 7deb87502e Fixed display Lyana's quest menu. by trazom
--HG--
branch : trunk
2009-12-25 15:41:12 +01:00
n0n4m3 2e1c488241 Fixed bug in SetInCombatState and script boss_four_horsemen
--HG--
branch : trunk
2009-12-25 11:40:48 +01:00
maanuel f911bdd20d Shadowfang Keep: Fixed door issue after restart or server crash by D_Skywalk.
--HG--
branch : trunk
2009-12-24 17:27:22 -03:00
maanuel 7ea2510980 Zul'drak: Support for quest The Amphitheater of Anguish: Magnataur!.
--HG--
branch : trunk
2009-12-23 02:30:44 -03:00
maanuel eccaad7b01 Zul'Drak: Improvements in scripts for quest chain The Amphitheater of Anguish. Now the Korrak movement is done with escortai.
--HG--
branch : trunk
2009-12-23 00:30:10 -03:00
maanuel 18a0809720 Howling Fjord: Correct gossip script for creature 24040. Added taxi path spell.
--HG--
branch : trunk
2009-12-22 02:53:02 -03:00
XTZGZoReX 4cd4c4afc1 * Same goes for you...
--HG--
branch : trunk
2009-12-21 21:38:47 +01:00
maanuel 3ace3eec86 Zul'Drak: Implemented random movement at spawn for creature 28526. To have a complete fix, apply the eventai scripts for quest "But First My Offspring", they are in tdb forum.
--HG--
branch : trunk
2009-12-21 00:46:49 -03:00
maanuel af83219083 Blackfathom Deeps: Corrected says in Kelris script.
--HG--
branch : trunk
2009-12-20 23:20:47 -03:00
maanuel 206f472ccf Gundrak: Partial redone of Drakkari Colossus encounter, it remove of some hacks.
--HG--
branch : trunk
2009-12-20 20:48:06 -03:00