aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
AgeCommit message (Collapse)Author
2020-06-14Scripts/Command: implement .debug play music commandForesterDev
Closes #19809 (cherry picked from commit dd4ff1fe5458c89fc1d988fcc6ba5792ee482dcf)
2020-06-14Instances/Ulduar: Fix a super edge case bug where Algalon would evade if his ↵treeston
tank successfully tanked a Cosmic Smash and got knocked up. Shadow priests everywhere rejoiced. (cherry picked from commit b6a4e9f3f9aca8e82e4b8cc1868e4b24dd2bba6f)
2020-06-14Scripts/VioletHold: fix stack overflow when reflecting 'Splash'ariel-
Closes #19514 (cherry picked from commit d9a1c82ab44254c280083e6297b8aec6350ab363)
2020-06-14Fix buildAokromes
(cherry picked from commit 195db7c7bb7137f3ebadefa81fabdcf66672711a)
2020-06-14Core/Defines: define faction templates and replace magic numbers from scriptsForesterDev
(cherry picked from commit abea8bf4cb3034f56d833982f951a0742dc36fc7)
2020-06-14Scripts/ICC: add missing cases for Dark Martyrdom difficulty entriesccrs
how come nobody noticed this? (cherry picked from commit 7afe0b7fb005999dfb8bfae45b7d22abbec29b93)
2020-06-14Core/Scripts: improvements on the Thorim scriptariel-
Improvements done to initial work by joschiwald: - Fixed stormhammer casting and visuals - Fixed spell credits - Implemented removal of Impale when HP is higher than 90% - Corrected faction templates for the pre combat creatures - Implemeted Leap on the arena adds (thanks to joschiwald for implementing conditions) - Scripted lighting charge using AuraScript periodic - Fixed timings - Corrections on the hallway encounters (added knockback immunity to minibosses too) - Fixed multiple blizzards issue - Lever will now reset properly, should players fail to get inside. This allows the door to be opened more than once during the combat - Corrections in the outro event - Implemented paralytic field traps on the hallway. - Implemented Ancient Gate of the Keepers opening. - Changed blizzard bunny targetting to conditions entirely. - Removed obsolete scripts - Standards: delete spell script names by ScriptName instead of spell_id - Swapped factions for pre-adds (alliance should get horde trash and vs) - Fixed Leap setting home position for adds - Removed a bunch of magic numbers - Runic Colossus should finish current Runic Explosion before beginning to attack - Fixed UpdateAI logic to put it in line with other scripts (ie don't stop casts) Special thanks to: - chaodhib for the blizzard trigger waypoints and investigation on spell radius - Malcrom for creating the Conditions Creator :P Closes #15008 Closes #17072 (cherry picked from commit 4a69f5bda58fe3af5ec6000e0ec10a3b0732969a)
2020-06-14Scripts/Ulduar: Initial implementation of the Thorim Encounterjoschiwald
Closes #7651 Fix logic fail in achievement: SPELL_LIGHTNING_CHARGE aka 62279 is casted on Thorim itself to buff him, not the damage spell tracked by the achievement. (cherry picked from commit 5e90c76fd44e81e01e7bd5274867864d082059d2)
2020-06-14Scripts/Events: Add missing line for "Love is in the air" boss fight (#19521)TecDian
(cherry picked from commit 4b8644d6e6581f13dcb2a965ce77a846017c1431)
2020-06-14Scripts/Commands: Update reload commands namesChazy Chaz
(cherry picked from commit 4843544c217800ba56b3084a8b1ca2fcf62cb091)
2020-06-14Core/Creature: drop method SetPositionccrs
eeeevil, use UpdatePosition. It was there just for old scripts compatibility. (cherry picked from commit 17579f8d91e0dcc6990fe581de9ca51ed444b754)
2020-06-12Core/Spells: Implement using different difficulty data from all spell ↵Shauren
related db2s, not just SpellEffect and SpellPower
2020-06-04Core/Misc: Ensure that query used for .reload creature_template command ↵Shauren
always matches the one used for loading during startup
2020-05-24Core/Maps: Improvements to terrain swap handlingShauren
* Fixed memory leak when unloading grids * Handle child maps being entered * Allow chaining more child maps (Draenor -> Tanaan Jungle -> Tanaan Jungle - No Hubs Phase)
2020-05-21Core/Misc: GCC build and warning fixesShauren
2020-05-03Core/Misc: build fixesShauren
Merges #24550
2020-05-03Core/Misc: build fixesariel-
(cherry picked from commit aa0b7dd1529a5c9cf666d569a54f024d28955c5b)
2020-05-03Core/Scripts: unified scripted gossip/quest apiariel-
- Changed self-accessor on GameObjectAI to "me", like UnitAI - Moved all related functions to AI, now Unit and GameObject have the same function names with identical behaviour - Remove "OnUpdate" from CreatureScript/GameObjectScript, was never used and we already have AI Update method - Quest methods no longer return a bool, the return value was used to call the AI version if the ScriptMgr one returned false - Implemented GameObjectAI::Destroyed hook (was never called), implemented Damaged method - Rename OnStateChanged to OnLootStateChanged to reflect when it's really called, and created a new hook OnStateChanged that only gets called on GOState change - Since the functions are now only getting called from AI, made GetAI methods full virtual. (CanSpawn method is anyways going to be used on creatures with AI) (cherry picked from commit f913f3bb8977c127d200d5d4a608ab434b21bbcd)
2020-04-29Core/Misc: camelize GetFaction/SetFaction properlyariel-
(cherry picked from commit 4c4dca6d694bd1064b403a31a5b1c776a326f3ce)
2020-04-28Core/Misc: cleanup SetInFront usesccrs
Set in front modifies only the serverside orientation, use with care. Also check for current focus to prevent things like incorrect damage on casting creatures (ie dragon breath direction change in your face because of some taunt missclick) (cherry picked from commit 229444b74a7e2176db142e0446d4268995c5aad6)
2020-04-28Core/Unit: 2170541a51 followupccrs
use true as default value since pretty much all the script calls will expect that (cherry picked from commit c7a57e2a093ada2ece7a01eac2f627aeb26b08d5)
2020-04-28Core/Scripts: Re-hack Boss Loken. Followup ↵Keader
3a0cb90ea994e82dd8c70888fb847082f738d5dc Loken still need ClearUnitState Hack to DoMeleeAttackifReady work (cherry picked from commit 4431a1149da7bc48ad1047fc8c6135ed02b2e77b)
2020-04-28Core/CreatureAI: b6b0353bff followupccrs
(cherry picked from commit 5fc366d03bf4e5250443e0573a4c9fa4611968a4)
2020-04-28Core/AI: some tweaks on boundary functionality:ariel-
- Moved SetBoundary to public scope to allow for greater flexibility (ie set from external script) - Extended to allow checking inverted boundaries (cherry picked from commit 6892404b270f57380ffdc9ad084e0f43d94134e0)
2020-04-28Core/Scripts: Added a missing break in Illidan Stormrage scriptKeader
Thanks Jackpoz (cherry picked from commit 3194d089cbf2dd30bb3fed3a7f6f7e85730ad0cb)
2020-04-28Core/Scripts: fix gaseous bloat proc (again)ariel-
- UNIT_STATE_CASTING removal not needed for movement now, but it's needed for melee attacking (cherry picked from commit 85076dd799a76b889d1d22890771f4bc445fd7f8)
2020-04-28Core/Scripts: Fix a typo in Blood Prince CouncilKeader
Thanks ariel- (cherry picked from commit 136f1e75aa8968eee9b94fa0d19e46e97332867a)
2020-04-28Core/Spell: define channels without movement interrupt flags as allowed moveariel-
- Remove script hacks no longer needed (cherry picked from commit 3a0cb90ea994e82dd8c70888fb847082f738d5dc)
2020-04-27Core/Scripts: Willix the Importer - $n in aggro texttkrokli
* In the existing core script, Willix the Importer in Razorfen Kraul says "Help! Get this $n off of me!" (showing the $n part in his SAY text) instead of naming the attacker when using his 'SAY_AGGRO1' creature_text. * With this commit change, unit target is no longer missing for Talk, making Willix name the attacking unit when he shouts for help. (cherry picked from commit 6cc267d90918a0663f928db302ef1465f7952c61)
2020-04-27Core/Scripts: Baltharus the Warborn preincrement _cloneCountKeader
(cherry picked from commit 2921449a333ea27a62c7b21d003650421c982917)
2020-04-27Core/Scripts: Baltharus the Warborn make clone count more readableKeader
*Also fixed issue that make Baltharus summons alot of clones when he is casting (cherry picked from commit 58f2e62098f2c78b77b6b3851709c83f33e1cafd)
2020-04-27Core/Scripts: Fixing Carbonion/TravisKeader
(cherry picked from commit 270a6396783ccb2b8dff181fca2760adb47d2110)
2020-04-27Core/Scripts: Fixed Baltharus the Warborn clonesKeader
*Clones not working after wipe *Changed Clone Action for a event (to check casting) (cherry picked from commit 6b8c4fb74feb2210d2fb9ea60ec23ab407ffeb39)
2020-04-27Core/Scripts: Typo in last commitKeader
(cherry picked from commit a2a8ffe72328590b43481b430b9a6f281ccdd4be)
2020-04-27Core/Scripts: Fixed Volatile Ooze/Gas Cloud issues in Professor PutricideKeader
Closes #18925 (cherry picked from commit 8d198cb36050e63811f8f7f81a3daf2a3c961950)
2020-04-26Core/Achievements: Optimized resetting achievement criteria by condition and ↵Xinef
changed the functionality to properly reset all possible criteria with given condition Closes #18905 (cherry picked from commit 7c7b877c3fc0292f33f54f4e8b514be3bf8514a6)
2020-04-26Scripts/GruulsLair: Fix indentationjackpoz
(cherry picked from commit 9d77b2be3b72810db1f12b6fde5e39583d521bc9)
2020-04-25Scripts/Antorus: implement Garothi Worldbreaker encounter for normal and ↵Ovah
heroic difficulty * added base script support for the encounter for normal and heroic difficulty * added instance script for Antorus the Burning Throne * added sniffed template data for involved gameobjects * added encounter related spawns to Antorus the Burning Throne * added instance encounter entry for Garothi Worldbreaker
2020-04-24Scripts: minimize duplicated enum names in header files (#19377)tkrokli
* Scripts: Minimize duplicated enum names in header files This reduces the number of cache resets with the Zapcc compiler - Standard followed is instance/raid TLA + DataTypes/CreaturesIds/etc - Partial cherry-pick of master commit 7eb4512eee5fc04994e2aa55126ccc97a8393506 - Removed unused defines in sunken_temple.h (the core scripts using these have been moved to SAI) (cherry picked from commit f6f36be004c3b8c7d09e0f320d5aabb8a9129109)
2020-04-24Core/AI: Build fixariel-
- Stop exposing DoublePosition constructor versions, they're only used for internal representation - Moved IsInBounds function to public scope (cherry picked from commit 83162fafa453c1d34fe23ddd86a43c3dff058300)
2020-04-24Core/AI: AreaBoundary refactorariel-
- Added an auxiliary function IsInBounds to base CreatureAI - Changed container to vector. Set had no sense because we're storing new pointers, they have different addresses even if the boundary is the same (cherry picked from commit 2f99fa09c9bacbad376d7a296c3311f94ec8a552)
2020-04-24Added new creature extra flag which makes npc visible only to dead unitsxinef1
closes #19333 * Rename 9999_99_99_99_world.sql to 2017_99_99_99_world_335.sql - file affects creature removed in patch 4.0.3a * Update Creature.cpp (cherry picked from commit e72b380b9374c92e5688002bf3a15065419a2ea0)
2020-04-24Core/Movement: 96f4c7c followupccrs
(cherry picked from commit 9be7f5f57b897888983a9ca6f441479f3571513c)
2020-04-24Core/Scripts: minor fixes in boss_the_lich_king (#19311)Gustavo
Closes #4427 Closes #7091 (cherry picked from commit 2792046dc7a229180d27dfdc4ce37ccfb84c8a27)
2020-04-24Core/Scripts: Updated Ulduar instance modelariel-
- Codestyle/indent fixes - Added ObjectData for some GOs - Added GetUlduarAI to creatures - Fixed possible out-of-bounds access in boss_razorscale_controllerAI (boss AI number beyond allocated boss size) (cherry picked from commit b74cc8085946fed1eb41a6332e3a5cca6f9edd7f)
2020-04-24Core/Spells: fix wrong distance calculations in AoE spells [Needs testing] ↵Chaouki Dhib
(#16290) Core/Spells: Fix wrong distance calculations in AoE spells. Pull request #16290 by chaodhib. God bless, finally. (cherry picked from commit a1f2f30c145f6ad9c4baeffeff32618e71ff537c)
2020-04-24Core/Scripts: Fixed wrong calculation of Aura of DesireKeader
Closes #19322 (cherry picked from commit 333a4034099e262db8db0a1736d01c30a8cf9d52)
2020-04-24Core/Auras: reworked multiplicative AuraEffects calculationariel-
- Splitted containers for flat modifiers and pct modifiers, as they now have different handling - Amount is now multiplied only on apply; on unapply, iterate through auras and reset the counter - Fixes many cases of rounding error due to applying/unapplying of small factors - Allows amounts to be zeroed (ie with an AuraEffect of amount -100) - Do a partial revert of 6dc37a9add631888fe5fbcd43d19c2b07bed8a57, auras should update amounts only for items allowed (ie no more giving crit to a sword while having an axe in the other hand and being Poleaxe spec'd) - SPELL_AURA_MOD_SCALE now scales additively, rather than multiplicatively (checked in sniffs) Closes #18687 (cherry picked from commit c69a7d1223b2ce108a221e5cc70f76cd80ae6675)
2020-04-24Core/Scripts: implemented Gnomish Harm Prevention Beltariel-
Updates #18542 (cherry picked from commit 2db3e86d9bf200e5049e553160bc47b7bacac621)
2020-04-20Core/AuctionHouse: After taking a break at the start of patch 8.3 auction ↵Shauren
house is now back in business.