Commit Graph

4725 Commits

Author SHA1 Message Date
Moein
18f5eae835 MovementInform should overrides 2018-01-04 09:52:48 +01:00
Treeston
9f9507e6a1 Core/Misc: A variety of clean-up changes, mostly following up on 532ab1c to fix legacy bugs exposed by it:
- Triggers can no longer have a threat list (this may expose some ugliness in old legacy scripts)
- Threat entries are forced to OFFLINE if the AI refuses to attack the target
- Clean up passive creature evade behavior to be more consistent
- Fix a months old issue in spawn group management that would cause "Inactive" to incorrectly show in .list respawns for system groups outside of map 0
- Valithria script cleanups, remove old hacks and make it work with the new system. Closes #21174.
- Some strings cleanup
2018-01-04 04:46:41 +01:00
Treeston
532ab1c7f8 Core: Combat/threat system rewrite (PR #19930)
- PvE combat is now always mutual. UNIT_FLAG_IN_COMBAT is backed by actual references to the units we're in combat with.
- PvP combat is now also tracked, and almost always mutual; spells like Vanish and Feign Death can break this rule. That means we can easily determine a list of players we're fighting.
- By extension, IsInCombatWith now has sensible behavior when invoked on nonplayers.
- Threat and combat systems are no longer the same.
  - They still have an enforced relationship (threat implies combat - clearing combat clears threat)...
  - ...but we can have combat without threat. A creature (with threat list) isn't considered to be engaged until it has an entry on its threat list...
  - ...which means we can now faithfully replicate retail engage behavior. Combat on projectile launch - engagement start on projectile impact. Yay for progress!
- AI method refactor, as already ported in 6113b9d - `JustEngagedWith`, `JustEnteredCombat` and `JustExitedCombat`.
- Vehicle threat is now properly pooled on the main vehicle body (fixes #16542).
- Various edge case bug fixes for threat redirects (Misdirection "cancelling" Vigilance and similar).
- Target re-selection is now significantly faster.
- Fixed a ton of other smaller edge case bugs, probably.

Closes #7951 and #19998.
2018-01-03 20:04:19 +01:00
Treeston
137955d0d2 missing override 2018-01-02 19:26:31 +01:00
Treeston
129dd33067 Scripts/ZulGurub: Fix an issue that was causing Bloodlord Mandokir to keep casting Frenzy after a wipe despite Oghan being alive. Closes #21158. 2018-01-02 19:23:10 +01:00
ariel-
fd7fff80c9 Core/Scripts: fix Millhouse Manastorm resetting dialogs after Skyriss encounter
Closes #21159
2018-01-02 11:45:09 -03:00
ariel-
036a05458e Core/Scripts: cast "Trial of the Naaru: Tenacity" credit spell when criteria is achieved
Closes #21155
2018-01-02 03:35:02 -03:00
ariel-
f8b148c334 Core/Scripts: fixed npc immunity flags during Harbinger Skyriss encounter
- Added missing _Reset
- Properly register Skyriss summons in SummonList

Closes #21154

Who ordered up an extra large can of whoop-ass?
2018-01-02 03:24:37 -03:00
ariel-
a5d4f34c31 Core/Scripts: Implemented Shifting Naaru Sliver 2018-01-02 02:58:19 -03:00
ariel-
de3fd4d076 Core/Scripts: fix issues with 'Squeeze' on Yogg-Saron encounter
- Unassigned spell script for 25-man difficulty
- Didn't remove aura on 25-man when tentacle killed
2018-01-02 01:33:35 -03:00
joschiwald
2a5d3a64bc Scripts: Fixed typo
thanks @shenhuyong
2018-01-02 01:46:40 +01:00
Treeston
100ecf69f1 nopch fix 2 for d507a7e 2018-01-01 15:27:51 +01:00
tkrokli
f6b6f57a6d Update copyright note for 2018
Best wishes for the new year.
2018-01-01 01:55:29 +01:00
jackpoz
513e153a13 Core/Misc: Removed unneeded checks 2017-12-31 14:41:31 +01:00
Treeston
6113b9dec2 Core/AI: Some more refactoring prep for #19930. CreatureAI::EnterCombat is now called CreatureAI::JustEngagedWith. There's also two new methods on UnitAI, though they're never invoked right now. 2017-12-31 03:23:42 +01:00
Treeston
d20b11cc5b nopch fix 2017-12-30 21:00:29 +01:00
Treeston
d507a7e338 [3.3.5] CastSpell unclusterfucking (that's a word now) (#21123)
Core/Spell: The giant CastSpell unclusterfucking (that's a word now) of this generation.

- CastSpell now always takes three arguments - target, spellId, and a struct containing extra arguments
- This struct (CastSpellExtraArgs, see SpellDefines.h) serves as a conglomerate of every previous combination of the 20 billion different CastSpell overloads, all merged into one
  - It has some great utility constructors - check them out! All of these can be used to implicitly construct the ExtraArgs object.
- A gajillion refactors to make everything behave the way it always has
2017-12-30 20:28:41 +01:00
Jeremy
e42903ec16 Core/Entities: Fix some weird movement due to los issues (#21125)
* Core/Entities: Fix some weird movement due to los issues
- Made LoS check use collisionHeight instead of midsection. Value was too low.
- Gnomes will now have a breath bar more quickly than for example a tauren.
- Changes have been made to checking for ground z as well, some tweeking might be needed but removed most of the scattered +2.0f/+0.5f/we
* Add 0.05f to isInAir check in Creature::UpdateMovementFlags
2017-12-29 22:32:07 +01:00
ariel-
e2a97ba7e7 Core/Scripts: fix codestyle 2017-12-29 18:08:19 -03:00
Rochet2
4d9fa4ea5f Core/Commands: Fix .modify mount (#21137) 2017-12-29 21:47:53 +01:00
Keader
502864e86c Core/Scripts: Val'anyr Hammer of Ancient Kings should proc only with effective heal 2017-12-29 14:16:53 -03:00
ariel-
f4629d83c6 Core/Scripts: prevent applying Aspect of the Beast on pet load if owner has switched aspects 2017-12-28 12:16:39 -03:00
ariel-
d13999c8d6 Core/Scripts: remove Quel'Delar from player inventory during "The Halls Of Reflection" quests (24480, 24561) 2017-12-28 12:16:38 -03:00
ariel-
720ba9e973 Core/Scripts: prevent Arthas in CoS losing his gossip flag and halting instance progress 2017-12-28 12:16:37 -03:00
ariel-
c409ba8d9d Core/Scripts: fixed Festergut applying more than one stack of Inoculated at once 2017-12-28 12:16:36 -03:00
Keader
465b43fabe Core/AI: Making guid const& in SetGUID method (#21128) 2017-12-27 22:17:13 +01:00
jackpoz
ad56299846 Core/Misc: Fix static analysis issues 2017-12-25 16:34:36 +01:00
jackpoz
cbc7642edd Scripts/Trial of Crusader: Fix static analysis issues 2017-12-25 15:32:50 +01:00
jackpoz
12701cb0c6 Core/Misc: Replace time(NULL) with GameTime::GetGameTime() 2017-12-24 22:50:59 +01:00
Keader
2362e9c794 Scripts/Trial of Crusader: Northrend Beasts Rework (#21031)
* Rewritten Gormok encounter
* Rewritten Snobold Vassal Script
* Rewritten Jormungars encounter
* Rewritten Icehowl encounter
* Added missing texts
* Added missing spells
* Implemented berserk mechanic on heroic diffs.
* Implemented Achievement requirement to make heroic diffs.
* Rewritten Barrett Ramsay scripts
* Added Barrett gossips and ported everything to DB.
* Added right Barrett in each encounter
* Removed a lot of hacks
* Rewritten Tirion Fordring script
* Rewritten Varian Wrynn script
* Rewritten Garrosh script
* Rewritten Wilfred event
* Rewritten Lich King event
* Updated codestyle
* Added missing spawns
* Fixed combat behavior before Gormok
* Fixed some visual stuff
2017-12-23 22:03:57 -03:00
Teppic1
ecc55c280c Scripts/Deadmines: New script for Edwin VanCleef (#20736)
* Scripts/Deadmines: New script for Edwin VanCleef

- Blackguards are now summoned properly as part of the encounter
- Blackguards will despawn on evade
- Fixed scripted actions/speech on health
- Removed Blackguards from world DB
- Corrected VanCleef's damage
2017-12-23 16:31:40 +01:00
Killyana
b08280fcfe Typo 2017-12-22 21:06:36 +01:00
Killyana
be56a4669e Scripts/Stratholme: Fix a DB error
Ref #20749
2017-12-22 20:20:14 +01:00
Naios
85e460802d Build: Inherit the features and warning flags privately
(cherry picked from commit 1285347518)
2017-12-21 23:31:11 +01:00
jackpoz
9a515c29ba Scripts/Stratholme: Add missing header for no-pch build 2017-12-21 21:17:07 +01:00
jackpoz
828c5d08e7 Scripts/Stratholme: Fix build 2017-12-21 21:12:56 +01:00
jackpoz
a98b2aa8c8 Scripts/Stratholme: Fix build 2017-12-21 21:05:37 +01:00
Riztazz
2a25d9d9a7 Scripts/Stratholme: Few changes to how Ysida behaves during the Baron run (#20749) 2017-12-21 20:57:29 +01:00
ariel-
de9f904269 Core/Spells: fix some DB errors
Ref #18542

- Implemented Choking Vines transformation at 5 stacks
- Implemented periodic Aura of Fear ticks
- Fixed Savage Rend passive proccing on anything (raptor pets)
2017-12-20 02:25:25 -03:00
Keader
143b2aeac0 Scripts/Naxxramas: Fixed blizzards following same player in Sapphiron encounter (#21068)
Closes #18765
2017-12-18 08:39:35 -03:00
Naios
92f96fc10e Build: Use the cotire library for precompiled header handling
* Required for handling flags inherited by linked projects
  correctly in the corresponding precompiled header.
* Reduces the maintenance effort for precompiled headers
2017-12-17 20:22:34 +01:00
Gogs
fbb2b1650f Core/Accounts: prevent existing account ban from being updated
Signed-off-by: jackpoz <giacomopoz@gmail.com>
2017-12-17 19:11:06 +01:00
Andrew Letson
1cedcf0bf3 Scripts/Commands: Add failure state for quest remove (#20611)
Add more verbose messaging to the .quest remove command
2017-12-17 15:51:11 +01:00
ForesterDev
661dfee80e Scripts/Commands: modify command .dismount to target any selected player (#19788)
- change security lvl for command .dismount to 2 (gamemasters). For players there is /dismount command

Closes #19788
2017-12-17 04:36:59 +01:00
Keader
f560842b59 Build fix 2017-12-15 22:07:24 -03:00
Riztazz
56b0433b6d Scripts/UBRS: The Beast (#20751) 2017-12-15 21:58:45 -03:00
ariel-
deebac9639 Core/Scripts: more nopch 2017-12-15 20:23:50 -03:00
ariel-
7fb70e74f2 Core/Scripts: nopch fix 2017-12-15 20:19:55 -03:00
ariel-
5fc4d36a1f Core/Scripts: fix drink auras 2017-12-15 19:58:12 -03:00
ariel-
7dff0e3246 Core/Auras: fixed off by one error in counting SPELL_ATTR5_START_PERIODIC_AT_APPLY ticks
- Made SpellInfo::GetMaxTicks and AuraEffect::GetTotalTicks return the same number without mods (dumped arbitrary default return value of 6 and arbitrary 30 sec limit)
- They should be streamlined whenever SPELL_AURA_48 is implemented
2017-12-15 03:40:36 -03:00