Commit Graph
5082 Commits
Author SHA1 Message Date
joschiwald 1f8fc55ac9 Core/Spells: Implementation of QAston proc system (#20131)
* Core/Spells: Implementation of QAston proc system

- Move checks from Unit::IsTriggeredAtSpellProcEvent (old system) to Aura::IsProcTriggeredOnEvent (new system)
- killed charge counter from SpellModifier and Player system for handling charges... no point in having 3 different systems doing the same thing
- Automatically add default entries to spellProcMap, based on spellinfo (else auras won't proc without an entry) Based on old Unit::ProcDamageAndSpellFor
- Old Unit::ProcDamageAndSpellFor renamed to Unit::ProcSkillsAndReactives and made private, will no longer handle auras.
- Start making use of HealInfo::AbsorbHeal in unit calculations, add effective healing info to HealInfo struct
- Changes in spell reflection system, emulates old behaviour, delaying aura drop
- Removed old charge count hacks in SpellMgr::LoadSpellInfoCorrections
- Removed bogus error log when procChance is 0: Some auras have initial 0 procChance but modified by SPELLMOD_CHANCE_OF_SUCCESS
- Fixed TriggerAurasProcOnEvent logic that tried to trigger twice from actor.
- Allow non damaging spells with DamageClass Melee or Ranged to proc character enchants. Ref issue #17034:

  * http://web.archive.org/web/20110309092008/http://elitistjerks.com/f47/t49865-paladin_retribution_pve/
  * When an auto-attack lands (does not dodge/parry/miss) that can proc a seal the of the following things happen independently of each other (see 2 roll system).

  * 1) A "hidden strike" which uses melee combat mechanics occurs. If it lands it refreshes/stacks SoV DoT. Only white swings can trigger a refresh or stack. (This hidden strike mechanic can also proc things like berserking..)
  * 2) A weapon damage based proc will occur if you used a special (CS/DS/judge) or if you have a 5 stack (from auto attacks). This attack can not be avoided.

  * Holy Vengeance is the "hidden strike" it has an apply aura effect and damage class melee.
- Fixed Blood Tap interaction with Death Runes (btw, don't know what was going on with those MiscValueB, spell 45529 doesn't have any MiscValueB in SPELL_EFFECT_ACTIVATE_RUNE)
- Ported some AuraEffect checks from old Unit.cpp function. added new AuraScript hook to check procs of an specific effect
- Allow only AuraEffects that passed the check to proc, this won't block whole aura from proccing (and lose charges) if at least one of the effects procs, though
- Changes in spell mod system (for SPELLMOD_CASTING_TIME). fixes #17558.
- Added an exception for SPELLMOD_CRITICAL_CHANCE too, fixes #15193

(cherry picked from commit e641d0c7d71bdb21e443bf52bf508b1581e07839)

# Conflicts:
#	sql/base/auth_database.sql
#	src/server/game/Entities/Player/Player.cpp
#	src/server/game/Entities/Player/Player.h
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Entities/Unit/Unit.h
#	src/server/game/Spells/Auras/SpellAuraEffects.cpp
#	src/server/game/Spells/Auras/SpellAuras.cpp
#	src/server/game/Spells/Auras/SpellAuras.h
#	src/server/game/Spells/Spell.cpp
#	src/server/game/Spells/SpellEffects.cpp
#	src/server/game/Spells/SpellInfo.cpp
#	src/server/game/Spells/SpellMgr.cpp
#	src/server/game/Spells/SpellMgr.h
#	src/server/game/Spells/SpellScript.cpp
2017-08-13 12:03:43 +02:00
Rochet2 7c39123432 Core/Commands: Fix .modify mount (#20086) 2017-07-27 21:09:48 +02:00
Shauren b85d46138b Core/Creatures: Deleted obsolete pet trainer script and fixed build 2017-07-27 00:04:37 +02:00
Shauren 0cd5179726 Core/Creatures: Rewrite trainer handling to properly support multiple trainers on the same creature
* Trainers are now defined as templates (sniffable), assigned by gossip options
2017-07-26 00:53:51 +02:00
joschiwald 9cb4a265a3 Misc: Fixed misleading indentation 2017-07-25 00:02:13 +02:00
Rochet2 211b564894 Scripts/Commands: Fix trinity_string usage and enhance commands 2017-07-22 09:22:17 +02:00
Seyden a9174d5eb7 Core/Scripts: Implement generic script loaders (and script registry macros) to greatly reduce code duplication (#19526) 2017-07-20 00:15:02 +02:00
jackpoz fc6b488620 Core/Misc: Fix static analysis issues
# Conflicts:
#	src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp
#	src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/scripts/Commands/cs_ban.cpp
#	src/server/scripts/Commands/cs_disable.cpp
2017-07-16 21:14:22 +02:00
jackpoz 74e4f73fcb Core/Misc: Fix static analysis issues
(cherry picked from commit 7d3291e8044841b085ca5b0987bdf25269881863)

# Conflicts:
#	src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
2017-07-16 20:50:43 +02:00
vincent-michael b81c2e7971 Scripts/Misc: Fixed static analysis issues 2017-07-16 12:18:14 +02:00
Defu bf55ebb2c4 Core/Spells: Fixed Hunter's Arcane Shot and Multi-Shot focus generation
Closes #19872
2017-07-13 19:15:21 +02:00
joschiwald edca8e03ea Scripts/Commands: Fixed typo in battlenet password command 2017-07-09 17:24:08 +02:00
Shauren 0b5c545e57 Core/LFG: Drop comment field, it no longer exists in packets 2017-07-07 21:24:02 +02:00
Aokromes 4cee412faf Fix another warning 2017-07-05 08:10:01 +02:00
Aokromes 0000334564 Fix warning 2017-07-05 07:50:31 +02:00
Aokromes b7e20d520f Core/Script: Partial Redridge fixup
By Malcrom - Reviewed by Treeston and Keader
2017-07-04 17:57:11 +02:00
Keader 43882262e8 Core/Scripts: Little codestyle fixes in 55acfef7ad 2017-07-03 09:37:32 -03:00
vincent-michael bdb0fae78c DB/Quests: Updated quest_template data for 7.2.5 part 2 2017-07-03 10:38:44 +02:00
Aokromes 55acfef7ad Core/Script: Fix quest Rescue the Survivors! 2017-07-02 23:23:31 +02:00
Aokromes 8fb42e5ce2 Update zone_durotar.cpp 2017-06-23 05:36:35 +02:00
Aokromes c292bcb96f Fix warning. 2017-06-21 14:17:43 +02:00
Shauren 228620b9d7 Core/Spells: Updated existing Death Knight spell scripts 2017-06-20 23:45:58 +02:00
ariel- 12646fe4b3 Core/Scripts: fix undefined reference errors in Linux
Closes #19915
2017-06-19 14:34:00 -03:00
vincent-michael 5439ef6dfc Core: Fixed non pch build 2017-06-18 00:20:18 +02:00
Shauren 24b8aa1166 Build fix for VS 2015 2017-06-17 23:26:27 +02:00
vincent-michael 3d3ab29096 Core/Spells: Fixed warning 2017-06-17 16:40:01 +02:00
Shauren 6c9b5e4cf5 Core/Spells: Fixed Atonement 2017-06-17 15:31:52 +02:00
Defu d8247a3b11 Core/Spells: Fixed Hunter spell Exhilaration rank 2
Closes #19858
2017-06-12 22:04:12 +02:00
Gacko 636c9c420a Fix non-PCH build. 2017-06-10 20:42:40 +02:00
Gacko 330bc69906 Fix build. 2017-06-10 20:30:03 +02:00
HannibalRoG 4d6d8c6ba8 Core/Spells: Implemented warrior spell Trauma
Closes #19350
2017-06-10 18:31:43 +02:00
Shauren 550c57a0df Buildsystem: Exclude ScriptPCH from all targets when building dynamic scripts (except MSVC) 2017-06-08 19:24:06 +02:00
Shauren a9b64d737d Core/Scripts: Optimize PCH contents 2017-06-08 00:37:50 +02:00
Shauren 137f5e7887 Buildsystem: Minor PCH building changes
* *PCH.cpp are now only compiled with MSVC, other compilers use custom helper commands to generate the precompiled header
* Don't call the linker for pch helpertargets
2017-06-08 00:37:15 +02:00
MartGon c320cc08e9 Core/Scripts: fix Exhilaration cooldown calculation with Hunting Party applied (#19860)
Hunting Party should decrease the cooldown of Exhilaration, not increase it
2017-06-07 21:21:12 +02:00
Shauren b453e12423 Core/Game: Include cleanup part 5
* ObjectMgr.h
* Player.h
* Unit.h
* G3D should no longer propagate everywhere from Spline/MotionMaster
2017-06-04 01:00:45 +02:00
Shauren 12d0306543 Core/Spells: Use ValidateSpellInfo in all scripts 2017-06-03 01:34:21 +02:00
Aokromes a1a8d55b86 Update zone_dun_morogh.cpp 2017-06-02 23:53:12 +02:00
Aokromes 0fd67afe30 Update zone_dun_morogh.cpp 2017-06-02 17:28:21 +02:00
Aokromes 7f5604c1a0 DB/Misc: Misc fixes for Dun Morogh
By Malcrom
2017-06-02 16:12:03 +02:00
Shauren dd38842d36 Nopch fix 2017-06-01 23:33:59 +02:00
Keader acbc81dc54 Core/Scripts: Removed a duplicated call in boss Hogger 2017-06-01 18:21:50 -03:00
Artamedes f494442524 Scripts/Stockades - Add scripts to instance (#19522) 2017-06-01 18:15:31 -03:00
vincent-michael 97854da1cd Scrips/MagistersTerrace: Fixed warning 2017-05-28 17:15:33 +02:00
vincent-michael e67beefe15 Core: Fixed warnings 2017-05-28 16:56:33 +02:00
Shauren a0a158b5b8 Core/Scripts: Include cleanup 2017-05-28 16:34:44 +02:00
Gacko 0596a223a2 Moar non-PCH fixes. 2017-05-25 12:40:58 +02:00
Gacko 5d3aa8889a Really fix non-PCH build. 2017-05-25 12:19:03 +02:00
joschiwald 08482bfc0d Scripts/XT002: Fixed Scrapbot repair 2017-05-25 10:43:33 +02:00
Shauren 38c6694b8e More nopch fixes 2017-05-25 00:24:37 +02:00