Commit Graph
2060 Commits
Author SHA1 Message Date
ariel- cc82951ff0 Core/Spells: add proc cooldown on item equip.
(cherry picked from commit 016b31a1b689b1c2c2d401f4d1709d74b24279fd)

# Conflicts:
#	src/server/game/Entities/Player/Player.cpp
2017-08-13 12:51:43 +02:00
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
Seyden 5675902485 Core/Creatures: Implemented Basic Creature Scaling (#20026) 2017-07-29 21:40:28 +02:00
joschiwald 19dcae0dd4 Core/Players: Fixed typo in appearance validation
Closes #20088
2017-07-28 00:31:26 +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
vincent-michael 23ab9be910 Core/PacketIO: Fixed typo in SMSG_QUEST_GIVER_QUEST_LIST_MESSAGE structure 2017-07-08 20:06:47 +02:00
Shauren 71a4021f4d Core/Quests: Fixed selecting quest package rewards
* Also revert 7e9a041470
2017-07-02 16:30:02 +02:00
Shauren d9eed8a3bf Core/Quests: Fixed crash in Player::RewardQuest for scenarios and lfg
Closes #19973
2017-07-01 23:26:16 +02:00
Shauren 6feb947af6 Core/Loot: Fixed looting ffa and conditional items
Closes #19812
2017-06-22 19:23:50 +02:00
Shauren 677b2fba42 Core/Quests: Fixed structures of QuestGiverOfferRewardMessage and QuestGiverQuestDetails 2017-06-11 19:53:22 +02:00
Shauren 01fd7d7fe9 Core/Quests: Fixed showing quest objective completion clientside for objective types 10, 11, 12 and 14 2017-06-10 00:06:07 +02:00
vincent-michael 61231f7e12 Core/Player: Fixed warning 2017-06-04 19:53:13 +02:00
Golrag ae83739ac7 Core/Players: Implement basics for the honor system
Closes #18480
Closes #19277
2017-06-04 16:52:53 +02:00
joschiwald 69e9ac8827 Core/Misc: Fixed warnings 2017-06-04 15:05:11 +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
Aokromes 6b2e262eb4 Core/Conditions: merge CONDITION_SOURCE_TYPE_QUEST_SHOW_MARK with CONDITION_SOURCE_TYPE_QUEST_ACCEPT. 2017-05-26 14:19:50 +02:00
Tisk d4eb2f79ca Core/Player: Implemented saving PLAYER_FLAGS_EX in database 2017-05-24 21:45:29 +02:00
Shauren 3d7c2ef88f Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr) 2017-05-21 23:18:43 +02:00
Shauren c5d3dd90be Core/Game: Include cleanup
* Mostly aimed at removing Log/DatabaseEnv includes from other headers
* Fix most packet headers including other packet headers - moved common structures such as ItemInstance to their own files
* Moved SAI function definitions to source files (massive or requiring many different dependencies)
2017-05-18 23:53:25 +02:00
Shauren a12a34b1dc Core/Game: Include cleanup - removed G3D classes from packets
* Use our own Position class instead, with the coords written to packets being part of type
2017-05-16 22:16:21 +02:00
Traesh c73ce93f4c Core/Entities : Basic Conversation Implementation (#18010) 2017-05-14 11:40:55 +02:00
Shauren 9299e9bde0 Core/Grids: Ported cmangos/mangos-wotlk@ea99457e50 2017-05-13 19:37:33 +02:00
Shauren 7e538980a2 Core/Database: Include cleanup 2017-05-12 18:50:27 +02:00
Shauren 3a418a0bbc Core/Common: Include cleanup 2017-05-11 22:29:51 +02:00
Shauren 8fc527f404 Core/Items: Set and save item context field 2017-05-08 23:56:35 +02:00
Shauren 6828c7bc2f Core/Items: Implemented new item bonus and enchantment types 2017-05-07 16:47:49 +02:00
Arog f2becced5a Core/Conditions: CONDITION_QUEST_OBJECTIVE_COMPLETE (#19510)
* Ignore QUEST_OBJECTIVE_FLAG_OPTIONAL from quest_completion
2017-05-05 22:23:45 +02:00
joschiwald c1cc0e9949 Core/Misc: Added Creature::CanGiveExperience helper function 2017-05-05 14:44:47 +02:00
joschiwald 272d2a29e5 Core/Entities: Tweak WorldObject::IsNeverVisible to pass the seer 2017-05-05 13:31:25 +02:00
Shauren 713783531c Core/Corpses: Misc fixes
* Updated corpse flags
* Fixed corpse guid during creation
* Properly set corpse faction
* Fixed setting weapon inventory types if transmogrified
* Fixed corpse location query response when corpse cannot be found
2017-05-01 20:20:18 +02:00
Shauren 3e060fc95d Core/Players: Fixed setting a few updatefields to make client addons relying on player names/realn names behave properly
Ref #19490
2017-04-27 00:03:18 +02:00
Shauren 2f859ffd2e Core/Misc: Fixed issues found by coverity
CID 1374575, 1374574, 1374573, 1374572, 1374563, 1374556
2017-04-26 18:01:50 +02:00
Arog 2e7a3a8fd6 Core/Conditions: Add type QUEST_OBJECTIVE_PROGRESS_BAR to CONDITION_QUEST_OBJECTIVE_COMPLETE (#19488) 2017-04-24 21:29:24 +02:00
Shauren c0eb6c3130 Core/Entities: Update updatefields to 7.2.0 2017-04-16 01:13:09 +02:00
Shauren adbdb64301 Core/PacketIO: Updated server packet structures to 7.2.0 2017-04-15 12:32:36 +02:00
funjoker d26b865650 Core/Conditions: CONDITION_QUEST_OBJECTIVE_COMPLETE addition (#19355) 2017-03-29 23:18:30 +02:00
Rochet2 ae17f1c9e9 Avoid float zero division (#19380) 2017-03-29 18:44:25 +02:00
Traesh 9cc5273cd2 Core/AreaTriggers: Areatrigger rework script system + fix priest angelic feather
Closes #19171
2017-03-21 18:14:23 +01:00
funjoker 945cfce1f6 Core/Conditions: Implemented new condition type CONDITION_QUEST_OBJECTIVE_COMPLETE (#18235)
Closes #17863
2017-03-20 08:54:29 +01:00
Chazy Chaz c7ea1b97c2 Core/Config: Add option CharDelete.DemonHunter.MinLevel
Closes #19285
2017-03-17 19:08:38 +01:00
Chazy Chaz c31de25627 Core/Players: Rename "heroic character" to "death knight"
Closes #19286
2017-03-17 19:00:56 +01:00
ariel- 3674356c9e 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

(cherry picked from commit 0c24e4ee0e1f0bbb37f740aa6f0d45c384ee955d)

Core/Unit: fix a copy/paste mistake

(cherry picked from commit 3bd5e0bf2fc3665d32ca08c96e7faccf2363429b)
2017-03-06 21:09:57 -03:00
SnapperRy de8aecacbc Core/Quest: send INVALIDREASON_QUEST_ALREADY_DONE if player tries to accept a quest that is already rewarded.
(cherry picked from commit 9bca68fb56a48870548d9f27857d3d879eb77adb)
2017-03-05 01:06:43 +01:00
ariel- 44d48c80ee 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)

(cherry picked from commit bdf7cf6d50f0ab3409d66cd6bcc1fb783053608b)
2017-03-05 01:06:40 +01:00
joschiwald ddd58ddcd8 Forgot to press Ctrl+S 2017-03-04 22:54:45 +01:00
ariel- 3ce3acf765 Core/Player: Implemented Titan's Grip damage reduction
Closes #6375

(cherry picked from commit a4baef19dd5d1fd42f20557d34219d9d14181545)

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
(cherry picked from commit df0f88eb80a79f43173ed2d708738ec945b9a755)
2017-03-04 20:18:55 +01:00
SnapperRy 4f34c8c563 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.
(cherry picked from commit 6d62f852acf3e1a3ee57cde2442832280aee8149)
2017-03-04 19:01:43 +01:00
SnapperRy cab4ce3a53 Core/Fishing: implement retail-like fishing skill-up functionality (#17528)
Follow-up to  6f1e823.

Forgot to update base characters database. Sorry.
2017-02-26 19:59:07 +01:00
Rochet2 117b45d768 Core/Scripts: Enhance quest status hook by making it catch more status changes (#17865)
(cherry picked from commit c52566a8881bdcd1cc33279e1a10621648cb664e)
2017-02-26 15:36:01 +01:00
r00ty-tc 8a71e4255e [Core/Maps] Activate creatures and objects during opening cinematics and other flyby cameras (sunwell etc).
Requires re-running map extractor to extract camera m2 files from data
files. These are very small.
2017-02-19 14:47:20 +01:00