Commit Graph

26507 Commits

Author SHA1 Message Date
ariel-
2ff855054f Core/Scripts: Convert spells to new proc system
- Converted Unit::HandleDummyAuraProc function to AuraScripts
  * Extra: DMC: Madness now uses DB texts. yay!
  * Extra: improvements on Imp. Spell Reflection (range and max targets, filter caster with conditions)

- Fixed Glyph of Succubus. (Closes #6599)

- Changed old (not-blizz) behavior of Vampiric Embrace:
  * Before: party heal affected the priest too and self heal was reduced by that amount to not over-heal
  * Now: self heal amount not affected, rather filter the priest out of the party heal using conditions :)

- Solve bug in AQ 3p set bonus, it should only trigger when healing others, not self heals.
- Priest T10 2p bonus (heal) now rolls its effect properly

- Use brand new GetEffectiveHeal to fix #17142
- While we're at it, also close #17034 for good
- Converted Unit::HandleAuraProc function to AuraScripts (#17941)
- Converted Unit::HandleAuraProc function to AuraScripts (cont'd) (#17955)
- Corrected Flametongue weapon damage formula
- Actually check offhand weapon for flametongue in Lava Lash script
- Implemented halved proc chance for Missile Barrage on Arcane Barrage, Fireball, Frostbolt and Frostfire Bolt cast
- Converted Unit::HandleProcTriggerSpell function to AuraScripts (#17956)
- De-hack Earth shield. Fixes #13808
- Updated Honor among Thieves
- Implemented mana proc for Mark of Conquest in case of ranged attack
- Fixed Scent of Blood giving more stacks than the talent rank currently learnt.
- Ported old proc table. Proc system is dead. Long live the proc system!
- Recklessness should get charges removed per cast. Closes #15529
- Use proc system to remove Molten Core charges on Incinerate/Soul Fire cast. Closes #15942

Closes #3463
Closes #5401
Closes #15595
Closes #15974
Closes #16679
Closes #17925
2016-10-04 20:21:58 -03:00
ariel-
e641d0c7d7 Core/Spells: Implementation of QAston proc system
- Move checks from Unit::IsTriggeredAtSpellProcEvent (old system) to Aura::IsProcTriggeredOnEvent (new system)
- Templatize SpellModOp param of Player::ApplySpellMod, also 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
2016-10-04 20:21:55 -03:00
Shauren
23902ff266 Core/Spells: Calculate hitMask and store it in DamageInfo/HealInfo structures 2016-10-04 20:19:12 -03:00
Kittnz
1b89211c74 Ofcourse 335 only 2016-10-04 22:37:38 +02:00
Kittnz
0cc08664c8 DB/Event: Add missing Lunar Festival Objects in Stormwind
Finally got missing objects from 335 sniffs in stormwind
2016-10-04 22:36:17 +02:00
Aokromes
308a2413a1 Scripts/Wintergrasp: Fix vehicle teleporter (#17550)
By WoWErrorDev, closes #5831.
2016-10-04 20:55:05 +02:00
Shauren
256d07f26f Core/Units: Clear UNIT_NPC_EMOTESTATE on death (blizzlike)
Closes #15263
Closes #18027

(cherry picked from commit cd326db30f)
2016-10-04 20:32:51 +02:00
SnapperRy
b60db6c44e Core/Wintergrasp: fix leaving Wintergrasp via the minimap button. 2016-10-04 19:13:11 +02:00
SnapperRy
63215dd15a Core/Wintergrasp: properly set and remove GO_FLAG_NOT_SELECTABLE from the Wintergrasp Relic, allowing the attacking faction to capture it. 2016-10-04 19:07:46 +02:00
SnapperRy
4891db4a4f Update 2016_10_04_03_world.sql 2016-10-04 18:55:18 +02:00
SnapperRy
ec4c4327bf DB/Creature: Ward of Laze: root and spellcast.
By tkrokli, closes #15304.
2016-10-04 18:53:51 +02:00
SnapperRy
fd620ca7d6 Core/Conditions: partially revert 723c253, replacing CONDITION_WINTERGRASP_HORDE with a ConditionScript. 2016-10-04 18:47:58 +02:00
SnapperRy
c22d3886ce Core/Wintergrasp: give quest credit for southern towers destroyed.
Updates #7953.
2016-10-04 17:23:36 +02:00
SnapperRy
df36e4b95d DB/Conditions: quests Southern Sabotage and Toppling the Towers are only available if the respective faction is defending Wintergrasp.
Also codestyle stealthfix.
2016-10-04 15:51:44 +02:00
ariel-
83771597c1 Core/Scripts: kill whitespace 2016-10-04 10:15:37 -03:00
ariel-
3bd5e0bf2f Core/Unit: fix a copy/paste mistake 2016-10-04 10:11:00 -03:00
treeston
84cf239fda Various: Fix coverity reported issues. 2016-10-04 13:49:05 +02:00
SnapperRy
9638c11453 Core/Wintergrasp: fix victory quests.
By Retriman, updates #7953.
2016-10-04 13:29:12 +02:00
SnapperRy
050522a25b DB/Pool: add pools for Wintergrasp item-gathering weekly quests.
Only one of the four quests will be available at a given time.
2016-10-04 12:22:51 +02:00
SnapperRy
7267a41418 Make travis happy and fix codestyle for previous commit. 2016-10-04 11:44:25 +02:00
SnapperRy
723c253f8f Core/Conditions: implement CONDITION_WINTERGRASP_HORDE to check if Wintergrasp is held by Horde.
Use negative condition to check if it is held by Alliance instead.

Use this condition to fix availability of the Wintergrasp item-gathering weekly quests.
2016-10-04 11:29:02 +02:00
ariel-
0c24e4ee0e Core/Unit: rewrite of the attack table system
- Removed a bunch of duplicated code
- Fix off-by-one errors in Unit::RollMeleeOutcomeAgainst and Unit::MeleeSpellHitResult (TC's combat table was actually of 100.01%)
- Implemented boss-level hit table (6.5% dodge/14% parry), bosses only had 5.6% of each until now
- Updated formula for chance and damage of Glancing hits

Sources:
- http://wow.gamepedia.com/index.php?title=Attack_table&oldid=2071465
- http://web.archive.org/web/20100903145646/http://www.mmo-champion.com/threads/650071-Expertise-Hit-for-Paladins-%28updated-for-3.3%29?daysprune=60
2016-10-04 01:26:34 -03:00
SnapperRy
c25f7c48b5 Core/Unit: don't reset offhand timer for players when starting attack.
Creatures are unaffected by this change. Not sure how they should behave in this case, so leaving it alone for now.

Closes #945.
2016-10-04 00:23:49 +02:00
SnapperRy
283aec9656 Rename two SQL files. 2016-10-03 23:49:33 +02:00
SnapperRy
790844e72d Script/Quest: A Cry For Help: (#18026)
- Add missing dialogue from Cowlen.
- Timers and emotes.
2016-10-03 23:47:41 +02:00
SnapperRy
ea6911517d Core/Loot: limit unique items check in LootItem::AllowedForPlayer() to bind-when-picked-up items only. 2016-10-03 23:44:51 +02:00
SnapperRy
5c5b8df613 Core/Loot: do not show unique items if player already has the maximum allowed quantity. 2016-10-03 23:33:44 +02:00
SnapperRy
9bca68fb56 Core/Quest: send INVALIDREASON_QUEST_ALREADY_DONE if player tries to accept a quest that is already rewarded. 2016-10-03 23:02:50 +02:00
SnapperRy
f56a181521 DB/PageText: add newlines to some item texts.
Affected items: Cloth Request, Defias Docket, Calor's Note, Covert Ops Plans: Alpha & Beta and Muddy Note.
2016-10-03 19:45:41 +02:00
SnapperRy
02d22d04c1 DB/Quest: end event for Harlan Needs a Resupply. 2016-10-03 18:35:30 +02:00
ariel-
7906bdc15e Build: Added 1.62 Boost version to FindBoost 2016-10-03 09:25:24 -03:00
SnapperRy
e9068afa1d DB/SAI: fix db error introduced in 2a8669d. 2016-10-03 13:49:15 +02:00
SnapperRy
a01f7ad470 DB/Creature: remove loot and experience for Webbed Creature. 2016-10-03 13:34:57 +02:00
SnapperRy
6cef1de8d3 Core/Quest: Gordunni Cobalt:
- Add second gameobject (Gordunni Dirt Mound, containing only junk items) that can spawn in place of the first (same name, but contains the quest item), 50% chance.
2016-10-03 13:30:14 +02:00
tkrokli
cfe4a3cb5a Rename 2016_10_00_00_world.sql to 2016_10_01_00_world.sql 2016-10-03 03:26:42 +02:00
ariel-
b54042d68f Core/Spells: Flag of Ownership shouldn't target creatures 2016-10-02 22:15:09 -03:00
ariel-
bdf7cf6d50 Core/Player: correct logic for IsUsingTwoHandedWeaponInOneHand
Fixes penalty not being applied when we are using a 2H in offhand, and a unarmed MH.
MH may do unarmed attacks in this case. (reciprocal of 2H MH, unarmed OH, only uses MH normally, OH doesn't unarmed attack)
2016-10-02 20:49:29 -03:00
joschiwald
625ca6ec1c Core/Spells: fixed SPELL_ATTR5_USABLE_WHILE_STUNNED 2016-10-02 23:32:14 +02:00
ariel-
405167dafd Core/Spell: Add Dual Wield skill dependency to Dual Wield effect, should remove the skill properly when unlearning spell.
Closes #17196
2016-10-02 15:49:29 -03:00
SnapperRy
64ab5779e1 DB/Loot: remove some wrong items from gameobject and creature loot.
Affected items: Green Linen Shirt, Iron Pommel, Mood Ring, Miniscule Diamond Ring, Cubic Zirconia Ring and Silver Piffeny Band.
2016-10-02 19:22:32 +02:00
SnapperRy
2a8669d77d DB/Quest: Supplies to Auberdine:
- Set questgiver to run all the path instead of walking.
- Add missing texts.
2016-10-02 15:01:47 +02:00
SnapperRy
7ec1465af2 DB/SAI: Twilight Disciple and Twilight Thug. 2016-10-02 12:40:44 +02:00
SnapperRy
517f57c33c DB/SAI: use spell instead of direct add item SAI for previous commit's script. 2016-10-02 12:38:18 +02:00
SnapperRy
9b31d1e44b DB/Creature: Raene Wolfrunner:
- Fix gossip texts.
- Add gossip option to restore item Dartol's Rod of Transformation if lost.
2016-10-02 10:51:37 +02:00
ariel-
df0f88eb80 Core/Player: unconditionally remove Titan's grip penalty aura on Spell removal
Was causing an issue when switching spec, because off hand weapon was still equipped
2016-10-02 03:32:08 -03:00
ariel-
b2fbd2c75d Core/Spells: SPELL_AURA_SCHOOL_IMMUNITY auras shouldn't remove passive auras (even if negative)
Ref issue #6375
2016-10-02 02:48:02 -03:00
ariel-
a4baef19dd Core/Player: Implemented Titan's Grip damage reduction
Closes #6375
2016-10-02 02:34:23 -03:00
ariel-
03e21d2fad Core/Spells: Implemented SPELL_ATTR6_NOT_RESET_SWING_IF_INSTANT.
Closes #1765
2016-10-02 00:24:47 -03:00
SnapperRy
ddca72509b DB/SAI: fix two events that would never execute because of wrong event_phase_mask set.
Also fix summon parameters for creature Thenan spawned at quest Breaking the Keystone's turn-in.
2016-10-02 02:09:47 +02:00
SnapperRy
3bf33d1987 DB/Quest: fix offer reward text for Redemption (Part 2, Draenei). 2016-10-02 01:58:04 +02:00