Commit Graph
64 Commits
Author SHA1 Message Date
Brian 486c00891b * Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.

--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
thenecromancer 81321b390a Add support for Maelstrom Weapon to prevent melee attack interruption when affecting spells
--HG--
branch : trunk
2010-01-24 15:43:58 +01:00
n0n4m3 99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
thenecromancer 8c5ece6420 Implement effect for aura #243 (temporary faction change)
--HG--
branch : trunk
2010-01-13 10:45:34 +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
win32 636018ca7e Implement aura 304.
--HG--
branch : trunk
2009-12-21 15:52:02 +02:00
n0n4m3 515cf192ef Update Spell code for 322a. Part 1
--HG--
branch : trunk
2009-12-17 12:18:10 +01:00
maximius 75e37c7599 *Implement "Chaos Bolt cannot be resisted, and pierces through all absorption effects" + some cleanup.
--HG--
branch : trunk
2009-11-20 20:25:12 -08:00
maximius d03ec103f3 *Backed out changeset 28e38f926a47. Closes #313.
--HG--
branch : trunk
2009-11-18 13:49:58 -08:00
maximius c2d1b5b0c5 *Swap some SPELL_AURA_MODs around. I have some fairly convincing evidence that, in WOTLK, these auras were switched around.
--HG--
branch : trunk
2009-11-17 23:07:48 -08:00
maximius e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius 26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
Machiavelli fe5a3e3c43 * Backout a part of the latest Mangos merge, armor penetration related. Please first check whether or not we need the code, then test it, then push to repo, one change per commit.
--HG--
branch : trunk
2009-10-10 18:19:34 +02:00
maximius b4c7a2514d *Blackfathom Deeps - Event: Aku'mai, by Tartalo
*Split Personality Achivement, by Destalker
*Halls of Lightning Fixes, by Destalker
    Volkhan fixes + Achievement
    Ionar Fix - without this he resets each time he is invisible, spamming sparks
    Arcing Burn - should be a debuff (and stackable, stackable part NYI :/)
*Naxxramas - Thaddius - the aura shall affect only the character without the proper aura, by Trazom
*Naxxramas - Kelthuzad - some timer adjustments (may need verification or tweaking) by Cass
*Merges by Stryker, thanks to all authors and testers.
[8458] Re-implement SPELL_AURA_MOD_TARGET_ARMOR_PCT in more porper way for weapon dependent cases. Author: VladimirMangos
[8459] Avoid mutiply apply weapon dependent armor penetration bonus for each weapon. Author: VladimirMangos
[8529] check rune cost only if spell has PowerType == POWER_RUNE. Patch provided by yavi. Author: Ambal
[8532] Fixed situation where some items like 42947 were not giving spell power bonus. By: Ambal
[8533] Not remove timed quest and correctly fail when time runs out. Add function to remove timed quest instead of direct access to set. Author: NoFantasy
[8536] Fixed spell 62776. By: Ambal
[8539] Check pet aura range at area aura update. By: Ambal
[8546] Implement battleground bonusweekends call to arms. Also fix typo in auctionmgr. Author: balrok
[8547] Implemented scriptcall: CorpseRemoved(uint32 & /*respawnDelay*/) it will be called when the corpse of the scripted creature get's removed, it's possible to adjust the next respawn inside the script. Author: balrok
[8561] Replace another auras code call by explicit code
[8566] avoid singleton-lock when accessing BattleGroundMGR::isBGWeekend() Proposed by vladimir. Comitter: balrok

--HG--
branch : trunk
2009-10-09 20:48:55 -07:00
megamage 0175da87e4 *Handle some spell specific which is both food and drink. Source: Mangos
--HG--
branch : trunk
2009-08-24 20:17:33 -05:00
QAston 97f0f98ec4 *Implement aura type SPELL_AURA_LINKED(284).
--HG--
branch : trunk
2009-08-17 21:06:01 +02:00
QAston 5047eb7a62 *Implement aura type SPELL_AURA_PREVENT_REGENERATE_POWER(294).
--HG--
branch : trunk
2009-08-17 16:57:36 +02:00
QAston b8993423b5 *Implement aura type SPELL_AURA_MOD_CRIT_PCT(290).
--HG--
branch : trunk
2009-08-17 16:30:14 +02:00
QAston 445b8236a1 *Implement aura type SPELL_AURA_MOD_XP_QUEST_PCT (291) and fix SPELL_AURA_MOD_XP_PCT(200) handler.
*Correct structure stored in world.sql for npc_spellclick_spells and fix world_script_text application.

--HG--
branch : trunk
2009-08-17 14:55:50 +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
QAston de721d1b86 *Some research about aura types.
--HG--
branch : trunk
2009-07-02 18:34:19 +02:00
QAston 70379983c3 *Implement aura type SPELL_AURA_ABILITY_PERIODIC_CRIT (286).
--HG--
branch : trunk
2009-06-25 17:55:19 +02:00
megamage aaec3c8191 [8024] Implement SPELL_AURA_MOD_ATTACK_POWER_OF_ARMOR(285). Author: Beaste
Also drop outdated support code for 61216 and ranks.
    This implement work talents 61216 and 48978 with ranks.

--HG--
branch : trunk
2009-06-16 11:02:37 -05:00
QAston 2e6db5421e *Fix aura type 280.
--HG--
branch : trunk
2009-06-16 15:29:07 +02:00
QAston eb2ee21b38 *Fix Glacier Rot
*Fix Improved Icy Touch
*Fix Annihilation
*Fix Tundra Stalker
*Some research in new aura types-thanks to megamage.

--HG--
branch : trunk
2009-06-13 23:38:18 +02:00
megamage 9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage 552e08b3f0 [7920] Ignore racial skill and skills without recipes in .learn all_recipes. Cleanup code. Author: VladimirMangos
--HG--
branch : trunk
2009-05-31 16:19:01 -05:00
QAston a1f73a8a08 *More correct handling of fly mod auras.
*Pets now learn all levelup spells.
*Fix lightning overload.

--HG--
branch : trunk
2009-05-02 16:08:52 +02:00
QAston 20c02ef760 *Update of aura system.
--HG--
branch : trunk
2009-04-06 13:31:14 +02:00
QAston d910fc951e *Auras by caster are now shown correctly (doublesized).
*First rank of Psychic Horror now procs correctly.
*Mana drain effects amount of damage is now correct.
*Raczman is now satisfied.

--HG--
branch : trunk
rename : sql/updates/1910_world.sql => sql/updates/1912_world.sql
2009-03-15 16:20:10 +01:00
QAston 786fbdec57 *Fix crash.
*Fix Guard Dog and Improved Cower -by pasdVn.
*Fix aura SPELL_AURA_OBS_MOD_ENERGY -by pasdVn.

--HG--
branch : trunk
2009-03-08 13:24:05 +01:00
QAston a0c920265d *Handle aura SPELL_AURA_RAID_PROC_FROM_CHARGE_WITH_VALUE.
*Fix Prayer of Mending tier 7 bonus, Prayer of Mending cast on pet, Prayer of Mending healing bonus from caster.

--HG--
branch : trunk
2009-02-21 19:58:04 +01:00
megamage cb7a85994c Update spell auras list for 3.0.9 Author: VladimirMangos
--HG--
branch : trunk
2009-02-19 18:54:11 -06:00
megamage 31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin 14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage 9635284494 [7281] Cleanup in unused and incorrectly marked as unused aura names and comments. Author: VladimirMangos
--HG--
branch : trunk
2009-02-15 12:11:46 -06:00
megamage affd4d9005 [7280] Implement 287 SPELL_AURA_DEFLECT_SPELLS aura Author: DiSlord
--HG--
branch : trunk
2009-02-15 12:03:51 -06:00
QAston 401ebf5455 *Handle SPELL_AURA_MOD_AURA_DURATION_BY_DISPEL and SPELL_AURA_MOD_AURA_DURATION_BY_DISPEL_NOT_STACK.
*Fix SPELL_AURA_MECHANIC_DURATION_MOD and SPELL_AURA_MECHANIC_DURATION_MOD_NOT_STACK for PVP.

--HG--
branch : trunk
2009-02-07 22:03:29 +01:00
QAston a38297f28f *Handle aura SPELL_AURA_MECHANIC_IMMUNITY_MASK.
*Fix a typo in ap bonus from stat calculation-thanks to megamage for pointing this.

--HG--
branch : trunk
2009-02-06 23:01:07 +01:00
QAston e920c9d1ab *Handle aura SPELL_AURA_MOD_HOT_PCT.
--HG--
branch : trunk
2009-02-06 22:08:03 +01:00
QAston 066b83b523 *Handle SPELL_AURA_ABILITY_IGNORE_AURASTATE and SPELL_AURA_ALLOW_ONLY_ABILITY.
*Fix build on Windows.

--HG--
branch : trunk
2009-02-05 13:38:48 +01:00
Drahy 5dab980495 * Updated copyright notice for new year (2009) part 2
* Changed mangos website

--HG--
branch : trunk
2009-02-04 12:42:26 +01:00
Drahy 7c19c420c6 * Updated copyright notice for new year (2009) part 1 - Mercurial cant convert all files at once
--HG--
branch : trunk
2009-02-04 12:04:12 +01:00
QAston 516cb0c6da *Handle SPELL_AURA_MOD_TARGET_ABSORB_SCHOOL and SPELL_AURA_MOD_IGNORE_TARGET_RESIST
*change handling SPELL_AURA_MOD_ABILITY_IGNORE_TARGET_RESIST and SPELL_AURA_MOD_TARGET_ABILITY_ABSORB_SCHOOL to use m_amount instead of fixed 100 value.
*SPELL_AURA_MOD_HEALING_RECEIVED use only when calculating aura caster healing.

--HG--
branch : trunk
2009-02-03 20:42:43 +01:00
QAston 8b36eb7f0c *Handle SPELL_AURA_MOD_ABILITY_AFFECTED_TARGETS.
--HG--
branch : trunk
2009-02-03 19:12:33 +01:00
QAston c3c36ec1c8 *Fix bug that missed/immuned/etc. shoots take no ammo.
*Handle SPELL_AURA_ABILITY_CONSUME_NO_AMMO

--HG--
branch : trunk
2009-02-03 18:27:22 +01:00
QAston 9c560802cd *Handle disarm offhand and ranged weapon, since now disarm affects all bonuses given by item.
--HG--
branch : trunk
2009-02-03 15:56:07 +01:00
QAston cccfd132dd *Handle SPELL_AURA_MOD_WEAPONTYPE_IGNORE_TARGET_RESISTANCE and new spellmods.
--HG--
branch : trunk
2009-02-02 22:31:11 +01:00
QAston f2e514eb04 *Handle SPELL_AURA_MOD_HONOR_GAIN_PCT.
--HG--
branch : trunk
2009-02-02 20:55:17 +01:00
QAston cc69f94c40 *Fix spell 53590 and it's other ranks.
--HG--
branch : trunk
2009-02-02 20:11:21 +01:00