Commit Graph

21770 Commits

Author SHA1 Message Date
Aokromes
5a9ae7eae6 typo fix 2016-10-09 15:23:59 +02:00
Aokromes
32277391cc Typo fix 2016-10-05 17:16:30 +02:00
Aokromes
a70e4e26b3 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-05 13:19:51 +02:00
Shauren
a3e5afc027 Core/Spells: Calculate hitMask and store it in DamageInfo/HealInfo structures 2016-10-05 08:01:38 +02:00
Aokromes
0169bfe1f5 Scripts/Wintergrasp: Fix vehicle teleporter (#17550)
By WoWErrorDev, closes #5831.
2016-10-05 08:01:20 +02:00
SnapperRy
29bb8c1eb1 Core/Wintergrasp: fix leaving Wintergrasp via the minimap button. 2016-10-05 08:01:03 +02:00
SnapperRy
18d75567b0 Core/Wintergrasp: properly set and remove GO_FLAG_NOT_SELECTABLE from the Wintergrasp Relic, allowing the attacking faction to capture it. 2016-10-05 08:00:42 +02:00
SnapperRy
f64a77a77d Core/Conditions: partially revert 723c253, replacing CONDITION_WINTERGRASP_HORDE with a ConditionScript. 2016-10-05 08:00:25 +02:00
SnapperRy
856b172060 Core/Wintergrasp: give quest credit for southern towers destroyed.
Updates #7953.
2016-10-05 08:00:02 +02:00
SnapperRy
638368f0e0 DB/Conditions: quests Southern Sabotage and Toppling the Towers are only available if the respective faction is defending Wintergrasp.
Also codestyle stealthfix.
2016-10-05 07:59:52 +02:00
ariel-
a96ab21ee2 Core/Scripts: kill whitespace 2016-10-05 07:59:43 +02:00
treeston
824db91cbe Various: Fix coverity reported issues. 2016-10-05 07:59:14 +02:00
SnapperRy
0f5f87add0 Core/Wintergrasp: fix victory quests.
By Retriman, updates #7953.
2016-10-05 07:59:05 +02:00
SnapperRy
3c2622d452 Make travis happy and fix codestyle for previous commit. 2016-10-05 07:58:50 +02:00
SnapperRy
3f61b4d81b 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-05 07:58:34 +02:00
Shauren
f5a980be9b Core/Units: Clear UNIT_NPC_EMOTESTATE on death (blizzlike)
Closes #15263
Closes #18027
2016-10-04 18:07:59 +02:00
SnapperRy
1a29f04e00 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 06:36:39 +02:00
SnapperRy
cfc8cbf42f Script/Quest: A Cry For Help: (#18026)
- Add missing dialogue from Cowlen.
- Timers and emotes.
2016-10-04 06:36:09 +02:00
SnapperRy
fbbe103245 Core/Loot: limit unique items check in LootItem::AllowedForPlayer() to bind-when-picked-up items only. 2016-10-04 06:35:48 +02:00
SnapperRy
f8036710e3 Core/Loot: do not show unique items if player already has the maximum allowed quantity. 2016-10-04 06:35:37 +02:00
SnapperRy
828026bede Core/Quest: send INVALIDREASON_QUEST_ALREADY_DONE if player tries to accept a quest that is already rewarded. 2016-10-04 06:35:17 +02:00
ariel-
ac084e4ddc Core/Spells: Flag of Ownership shouldn't target creatures 2016-10-03 14:58:07 +02:00
ariel-
6ee820afe4 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-03 14:57:51 +02:00
Aokromes
bcfe5b4f4f Core/Spells: fixed SPELL_ATTR5_USABLE_WHILE_STUNNED 2016-10-03 14:56:48 +02:00
ariel-
919a3c631e Core/Spell: Add Dual Wield skill dependency to Dual Wield effect, should remove the skill properly when unlearning spell.
Closes #17196
2016-10-03 14:53:59 +02:00
Aokromes
576cfa8328 Core/Player: unconditionally remove Titan's grip penalty aura on Spel…
…l removal

Was causing an issue when switching spec, because off hand weapon was still equipped
2016-10-03 14:53:39 +02:00
ariel-
a57f628eb2 Core/Spells: SPELL_AURA_SCHOOL_IMMUNITY auras shouldn't remove passive auras (even if negative)
Ref issue #6375
2016-10-03 14:51:38 +02:00
Aokromes
d9ae70396b Core/Player: Implemented Titan's Grip damage reduction 2016-10-03 14:51:20 +02:00
ariel-
b18477f80f Core/Spells: Implemented SPELL_ATTR6_NOT_RESET_SWING_IF_INSTANT.
Closes #1765
2016-10-03 14:42:53 +02:00
joschiwald
4ed2cd9500 Core/Spells: use spellinfo helper methods
(cherry picked from commit 12a52595ed)
2016-10-03 14:42:37 +02:00
joschiwald
de1322f134 Core/Player: fixed math error
(cherry picked from commit cc1e2fd452)
2016-10-03 14:42:19 +02:00
SnapperRy
ad98ab192c Core/Script: make creature Webbed Creature spawn creature Expedition Researcher when appropriate.
Also don't allow it to spawn a copy of itself.
2016-10-01 16:48:48 +02:00
SnapperRy
0f65529f2e Misc/Config: fix an oversight.
Thanks tkrokli for noticing.
2016-10-01 16:48:35 +02:00
SnapperRy
2dd1291a9b Misc/Config: enable ChatFakeMessagePreventing by default, since it's a blizzlike feature. 2016-10-01 16:48:20 +02:00
SnapperRy
e241916bcd Core/Config: allow to specify daily quest reset hour in config.
Also default it to 3:00AM, as that's when daily quests used to reset during WotLK.
2016-10-01 16:48:06 +02:00
SnapperRy
83dafd5886 Core/Spell: set quest to rewarded instead of complete when targeted by SPELL_EFFECT_QUEST_COMPLETE. (#18021)
Prevents people from ending up with strange quests in their quest logs.
2016-10-01 16:47:49 +02:00
SnapperRy
af87a5d5bf Core/World: properly re-initialize daily quest reset time when resetting daily quests. (#17986)
Prevents daily quests from resetting at weird times when restarting the server after a player has completed a daily quest.
2016-10-01 16:47:34 +02:00
SnapperRy
abfc973bdc Core/Log: move an error to DEBUG level.
Prevents console spam in case of players canceling the cinematic at characters' first login.
2016-10-01 16:47:24 +02:00
Aokromes
c9965c331a Core/Maps: Fix compile on windows
By ConradBunton
2016-09-27 20:24:44 +02:00
Aokromes
a99ac65b80 fix build 2016-09-27 13:23:16 +02:00
Keader
a6c18901b2 Core/Scripts: Fixed Gunship Mage cast interrupt
Closes: #14912
2016-09-27 13:03:07 +02:00
treeston
a142c7b2ae and you get a header, and everyone gets a header... 2016-09-27 13:02:59 +02:00
treeston
0b2b2641a0 .....hail PCH 2016-09-27 13:02:49 +02:00
treeston
0739185b29 ...for real this time (seriously - what happened to test builds before merging, Aok?) 2016-09-27 13:02:41 +02:00
treeston
31d71fda27 Fix nonPCH. 2016-09-27 13:02:32 +02:00
Treeston
6dd0f9a478 I think I got all of them this time
No idea how this one got past travis.
2016-09-27 13:02:25 +02:00
Aokromes
f2639df97a Update boss_hadronox.cpp
I hate travis, learn from buildbot
2016-09-27 13:02:17 +02:00
Aokromes
0cb82d69ae Update boss_hadronox.cpp 2016-09-27 13:02:07 +02:00
Treeston
69e4236146 Scripts/AzjolNerub: Full rewrite 2016-09-27 13:01:58 +02:00
ariel-
ceb1750432 Core/Scripts: Fix build 2016-09-26 07:39:06 +02:00