Commit Graph
331 Commits
Author SHA1 Message Date
megamage 8871c2952a *Some better check of well-fed buff. Source: Mangos
--HG--
branch : trunk
2009-08-24 19:12:22 -05:00
megamage 8dcfa4302b [8394] Fixes for some non-self only positive spells. Author: VladimirMangos
* Propertly reject self targeting for pet spell 2947 and ranks, and spell 54646.
    * Some related fixes for pet spells with target mode TARGET_SINGLE_FRIEND_2
    * Implement original caster bonus part of spell 54646.

--HG--
branch : trunk
2009-08-24 18:59:11 -05:00
megamage 6602a9fc48 *Fix a logical error in IsOnVehicle check.
--HG--
branch : trunk
2009-08-24 13:45:27 -05:00
megamage 5f1589d6d1 *Allow vehicles to regenerate energy.
--HG--
branch : trunk
2009-08-23 22:36:51 -05:00
megamage 1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
Rat 6ce460e04d *add new fuction StartAutoRotate(direction, fullturntime) to creatures, it will rotate any creature 360degrees, turning shouldn't be stopped by taunt and other effects.
useful for some boss scripts

--HG--
branch : trunk
2009-08-24 00:14:32 +02:00
megamage b35fe879ad *Some update of spell target selection.
--HG--
branch : trunk
2009-08-23 00:46:21 -05:00
megamage 457f7971de *Fix the bug that Eye of Acherus does not fly in some servers.
--HG--
branch : trunk
2009-08-21 02:46:48 -05:00
megamage 92f3d27027 *Remove all ghouls after quest is completed in dk's "give gift" quest;
--HG--
branch : trunk
2009-08-19 20:30:11 -05:00
megamage 012d6fa865 [8381] Some refactoring work in Unit::m_currentSpells code. Author: VladimirMangos
* Restrict access, use enum args, move some repeated code parts to function.
    * Make m_selfContainer set only part of Unit::SetCurrentCastedSpell

--HG--
branch : trunk
2009-08-19 16:52:51 -05:00
QAston 5047eb7a62 *Implement aura type SPELL_AURA_PREVENT_REGENERATE_POWER(294).
--HG--
branch : trunk
2009-08-17 16:57:36 +02:00
megamage 5cd6c7c4f7 *Implement m_AurasUpdateIterator. [8329] Author: VladimirMangos
--HG--
branch : trunk
2009-08-12 21:24:15 -05:00
QAston ba91c78ceb *Update Mana Shield Spell Power Coefficient - by fukifat.
*Add function void AuraEffect::HandleAuraEffectSpecificMods(bool apply, bool Real, bool changeAmount), and aura effect specific stuff to it.
*More correct aura scaling with lvl for area auras.
*Prevent exploits with relog while having auras with modified amount.

--HG--
branch : trunk
2009-08-13 00:52:05 +02:00
QAston e2e70b936b *Cleanups and obsolete spell handlers remove.
--HG--
branch : trunk
2009-08-11 19:57:27 +02:00
megamage 3fa3c8b098 *Add function Unit::OutDebugInfo for debug.
--HG--
branch : trunk
2009-08-11 10:53:29 -05:00
QAston 6b4772207f *Cleanups, remove obsolete code and minor optimizations in spellauras.cpp and spelleffects.cpp
*Remove GetDummyAura(uint32 spellid) function - it is faster to use GetAuraEffect or GetAura if id is known than iterate threw dummy auras list
*Move Death Strike code from HandleDummyAuraProc to Spell::EffectDummy - original patch by hununza.

--HG--
branch : trunk
2009-08-08 16:18:05 +02:00
megamage 11488f2063 [8295] Remove single target auras at caster/target shift to not accessable phase. Author: VladimirMangos
This must fix another source of "Couldn't find the caster of the single target aura" errors.

--HG--
branch : trunk
2009-08-05 15:35:43 -05:00
QAston 13758fcae1 *Fix per-caster aura state based on [8218] (Author: VladimirMangos;almost nothing left from original patch):
*Fixes all per caster aurastates instead of only conflagrate
*Adds a holder for aura state auras for speedup search
*Save some memory space by removing m_auraStateMask from aura class.

--HG--
branch : trunk
2009-07-30 17:16:56 +02:00
QAston 9c52a12e08 Backed out changeset 6ba74f274cb9 - mangos [8249]
--HG--
branch : trunk
2009-07-30 11:44:23 +02:00
megamage 7121d98480 [8249] Implement support spell_proc_item_enchant table for ppm item enchantments triggering at hit.
* Added a new SQL table, spell_proc_item_enchant, for "custom" ppmRates on Item Enchants that do not use auras.
      With table data this must fix ppm for effect from 8033 and ranks enchanting, and item 6947/10918 and ranks enchanting.

    * Implemented SPELLMOD_FREQUENCY_OF_SUCCESS (26).
      That must fix work talent 14113, spell 32645 with ranks, glyph 41094 and item set effect 64917 in frequency part.

    Thanks to MaS0n as author alternative patch that partly used in this patch.
    Thanks to Thenecromancer as author alternative patch that ideas inspire MaS0n's patch writing and then this patch also.

Author: nos4r2zod

*Note: has been implemented before. Only use part of the patch.

--HG--
branch : trunk
2009-07-30 11:33:28 +08:00
megamage 5d9d64e6f0 [8229] Improve stealth detection code for player case. Author: Ambal
--HG--
branch : trunk
2009-07-30 10:38:53 +08:00
QAston c15c25aca4 *Cleanups and Fixes in Mirror Image script.
--HG--
branch : trunk
2009-07-28 21:34:18 +02:00
QAston 491051e194 *Rage is now generated by damage absorbed
*Fix rage calculation for level > 70
*Allow rage generation for NPC using rage
*Make mitigated damage not add rage
*Fix Warriors' Berserker Rage
Author of all of these: thenecromancer

--HG--
branch : trunk
2009-07-27 18:05:30 +02:00
QAston e8f8b66636 *Implement immunity removal part for Shattering Throw ability - by thenecromancer.
--HG--
branch : trunk
2009-07-27 17:32:56 +02:00
megamage e79656b75a *Use virtual function for GetFollowAngle
--HG--
branch : trunk
2009-07-23 09:17:35 +08:00
QAston a522e3bff4 *Add spell_linked_spell entry for Lichborne.
*Add defines for SHADOW_DANCE and UNDEAD shapeshifts to prevent error display - cherrypicked from Astellar's shape patches.

--HG--
branch : trunk
2009-07-23 01:01:12 +02:00
QAston 2ff21d4cef *Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 (SPELL_AURA_INITIALIZE_IMAGES)
*Handle CMSG_GET_MIRRORIMAGE_DATA opcode.
*Save Minions follow angle to allow themmoving in a formation
*Improvements in SpellAI: correctly evade and select attack target for creatures without threat list
*Use SpellAI instead of PetAI for not controllable guardians
*Only guardians with SUMMON_TYPE_PET are controllable now
*Add script and template data for Mirror Image.
*Thanks to Drahy for help.

--HG--
branch : trunk
2009-07-22 17:10:30 +02:00
Rat c8342ca8ce *use OriginalVictim for some range based spell casts (only scripts)
-fixed void reaver's arcane orb spell, now it is shown in combatlog (cheers to bossmods)

--HG--
branch : trunk
2009-07-18 23:22:23 +02:00
QAston 88cd705c26 *Remove some code for spells not present in dbc of 313.
--HG--
branch : trunk
2009-07-17 17:26:13 +02:00
QAston 310f15e546 *Make charge-like spells with talented warbringer correctly remove movement impairing auras.
*Fix Revitalize.
*Use MaxHp of target instead of base hp for CC auras amount.

--HG--
branch : trunk
2009-07-13 21:27:05 +02:00
QAston aee2b18160 *Set pvp flag for spells with SPELL_ATTR_EX3_NO_INITIAL_AGGRO if needed.
--HG--
branch : trunk
2009-07-13 15:38:48 +02:00
QAston bf5447b469 *Handle breaking on damage auras by procflags - original patch by thenecromancer
*Implement Glyph of Fear - by thenecromancer

--HG--
branch : trunk
2009-07-11 15:58:19 +02:00
QAston 99ef71cbc4 *Fix some problems with charmer removing started with rev 4402.
--HG--
branch : trunk
2009-07-09 18:18:41 +02:00
megamage e1d93bd00f *Backup your DB!
[8098] Support uint32 spell ids in code. Author: VladimirMangos

    * Propertly work with uint32 spell ids in player action bar
    * Fix in same time bug with not save equipment set button with id==0
    * Merge misc field in character_action and playercreateinfo_action to action field as 3 byte
    * Propertly load uint32 spell ids from character_spell
    * Fixed types for some pet/creature related structure for spell id storing.

--HG--
branch : trunk
2009-07-01 18:07:20 -05:00
QAston 69f36d7af4 *Send threat messages to client - thanks to megamage for research.
--HG--
branch : trunk
2009-07-02 00:03:57 +02:00
QAston 81ac49f00a *Fix rend and tear talent.
*Allow hots to proc only if spellfamilyflags are specified in spell_proc_event.

--HG--
branch : trunk
2009-06-28 19:39:15 +02:00
megamage cf9c437d8e [8082] Update Diminishing Returns. Author: Lightguard
--HG--
branch : trunk
2009-06-27 18:24:40 -05:00
QAston 70379983c3 *Implement aura type SPELL_AURA_ABILITY_PERIODIC_CRIT (286).
--HG--
branch : trunk
2009-06-25 17:55:19 +02:00
QAston 642a343d98 *Fix Nurturing Instinct.
--HG--
branch : trunk
2009-06-25 16:34:49 +02:00
QAston f2ec641e42 [8056] Move SMSG_CLEAR_COOLDOWN into function and use it. Other cleanups. Author:XTZGZoReX
[8060] Store spell_pet_auras for auraeffects instead of by whole aura Author:hunuza.

--HG--
branch : trunk
2009-06-23 14:05:37 +02:00
Machiavelli a4dafbf8ec * More updating of iterator data types in loops
--HG--
branch : trunk
2009-06-18 18:29:28 +02:00
QAston 2e6db5421e *Fix aura type 280.
--HG--
branch : trunk
2009-06-16 15:29:07 +02:00
megamage 74e4f3f059 *Merge.
--HG--
branch : trunk
2009-06-15 23:38:57 -05:00
megamage 00f4a31b73 [8016] Work at npc click table data use. Author: VladimirMangos
* New fields in `npc_spellclick_spells` for allow set npc spell click mode from quest to infinity
      or to another quest, or from reward quest.
    * Not expect (and forbid set UNIT_NPC_FLAG_SPELLCLICK in DB and set it at `npc_spellclick_spells` loading.
    * Apply some speedups for creature checks affected by spel click state

*Also add target position of 51852. By Roland

--HG--
branch : trunk
2009-06-15 23:07:43 -05:00
megamage b9610f27dd *Check movementflag to interrupt casting instead of checking position.
*Also some other fixes about movement flags.

--HG--
branch : trunk
2009-06-15 12:02:55 -05:00
QAston 9777004606 *Fix build.
--HG--
branch : trunk
2009-06-15 15:49:08 +02:00
QAston 7268e291b4 *Fix improved drain soul.
--HG--
branch : trunk
2009-06-15 13:42:43 +02:00
megamage 1cacf0267e *Some update of vehicle.
--HG--
branch : trunk
2009-06-14 21:04:20 -05:00
QAston e81175ec11 *Fix Hungering Cold.
--HG--
branch : trunk
rename : sql/updates/3997_world_spell_proc_event.sql => sql/updates/4000_world_spell_proc_event.sql
2009-06-15 01:10:09 +02:00
megamage 461a799a52 *Add function EnergizeBySpell. Author: nos4r2zod
--HG--
branch : trunk
2009-06-14 10:16:55 -05:00