aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
AgeCommit message (Collapse)Author
2021-06-19Scripts/Ulduar: Flame Leviathan used a very weird mixture of victim logic ↵Treeston
and REACT_PASSIVE, which broke during transition to the new system. Replaced with a working version. Closes #21265. (cherry picked from commit b3e0c892385c7f75a061feef08c3ac05b53b4e2e)
2021-06-19Scripts/ICC: Valithria Dreamwalker's script no longer despawns unrelated ↵Treeston
mobs in Frostwing Halls, and thus won't get them stuck in a despawned state due to linked_respawn. Closes #21286. (cherry picked from commit aefc25482f79e07e1237cc0a6c01e7064fd745be)
2021-06-19Scripts/Icecrown Citadel: Corrected Val'kyr Shadowguard positioning on ↵sirikfoll
heroic mode (Lich King) Movement was being prevented by spell cast (cherry picked from commit a217c0be922f7a14bf78acb87aaaef5bc99afe95)
2021-06-19Scripts/Pets: Mirror Image re-write, because it's a colossal mess right now. ↵Treeston
(PR #19818) (cherry picked from commit 03ef79f3d9e323030c771e97863398c43f6cb3a4)
2021-06-19Scripts/Icecrown Citadel: Added missing cosmetic colors and emotes to Big ↵Shauren
Ooze (Rotface) (cherry picked from commit aaab7ba9f4e08ba5b7d7ac2f4e37e07d80c8f339)
2021-06-19Quest/script: Freedom to RuulKillyana
Follows https://github.com/TrinityCore/TrinityCore/commit/4dc91429dd2158c75679d07c34a18a2e12b4ef7a (cherry picked from commit 52fc5a572b037a9aee084be7f5bcc9bb7d84c0e9)
2021-06-19DB/Quest: Freedom to RuulKillyana
Closes #7262 (cherry picked from commit 4dc91429dd2158c75679d07c34a18a2e12b4ef7a)
2021-06-16DB/SpawnGroup: Instance spawn group data for Tempest Keep: The Eye and ↵Treeston
Hellfire Citadel: Ramparts. (also some minor adjustments to command output for convenience) (cherry picked from commit 51e28ae76a40bb40bdd6f163773d2e3bd8f76ec4)
2021-06-16Misc: assert -> ASSERTTreeston
(cherry picked from commit 6c3c200cc52397b4b32ed76e676830e9f1d67d4c)
2021-06-16Scripts/Commands: new command '.debug instancespawn'Treeston
(cherry picked from commit 6ce078d8e885f61ebdff3eb905e4cf6a2911da90)
2021-06-16Core/Scripts: reverted Auriaya spell script logicariel-
Thanks Shauren for spotting it (cherry picked from commit 6dd465c4414b95c3540f38ed67eae2f6bc71a3c3)
2021-06-16Core/Entities: don't allow client control if player is still affected by any ↵ariel-
lose of control state (cherry picked from commit e315e41d36061fc88dfa09bfa0da1fbc0c00826f)
2021-06-16Core/Entities: killed Creature::SetInCombatWithZone and replaced with AI versionariel-
Closes #12108 (again) (cherry picked from commit 7c9722a4ae08b5f283f6a085a411e37604a7da9f)
2021-06-16Core/Formations: update codestyle and fix crashariel-
Closes #21288 (cherry picked from commit 73cc613dc86d7d72d78f22affe2faba6786bccc5)
2021-06-16Scripts/Outland: Fix logical error in Hellfire event in Honor HoldKittnz
(cherry picked from commit 8f64612cb12d2ceabf610a436e7b514acdc1b181)
2021-06-16Core/Scripts: fix wrong uses of SetHitDamage hook.ariel-
This hook modifies damage AFTER it has been reduced by target auras/armor/resistances etc, it's useful if you want to scale damage by a factor, but not to add flat bonuses. We're fixing those by moving calculation to Launch phase, where target taken bonuses haven't been used yet. - Bronjahm: Magic's Bane - BPC: Shadow Prison - Oculus: Shock Lance - Ymiron: Dark Slash (extra fix, it was wrongly damaging half of total health, it's supposed to be half of CURRENT health!) - DK: Raise Ally Thrash spell (also extra fix: corrected formula) - Warrior: Bloodthirst (shouldn't matter much as it's damage class none and those don't get bonuses by default) - Warrior: Concussion Blow - Warlock: extra fix for Haunt, healing part shouldn't scale with spell power Closes #9560 (cherry picked from commit 9f5d1e2b10013e5fecf35fdd5af70921c96d07d1)
2021-06-16Scripts/Utgarde Keep: Fixed Ingvar evade in phase 2 (again)Keader
Closes #21264 (cherry picked from commit 96983fc6bb0bf0793d9a8da970009f346d8cdb62)
2021-06-16Core/Scripts: added nullptr checks to DamageTaken hooksariel-
Since cb9e72e521d3cc415dd15bf6912c87f89e41b92a attacker may not be in world when hook is called (cherry picked from commit 0db5c2df3fe56f42293865e87ec781cd4d41598b)
2021-06-16Scripts/AzjolNerub: Missing nullptr check in Hadronox. Closes #21258.Treeston
(cherry picked from commit d9d26200f7ffc07507dfca4a2c17fdfcde0194c8)
2021-06-16DB/SpawnGroup: instance_spawn_group data for map 576 (The Nexus)Treeston
(cherry picked from commit 0319c713a40489f7e29762cfdfbaa2df7701d4ab)
2021-06-16Scripts/Spells: quest "That's Abominable" (#21253)Moein
- scripted spell "Burst At The Seams" (59576) - added Pet Bar Closes #10876 (cherry picked from commit e519e14df8d846285f1d29fb7e5aa0b151c6f74e)
2021-06-16Core/Scripts: fix some spells double dipping from done/taken bonusesariel-
Closes #21007 (cherry picked from commit ab3307fc2373ace51bea93682bc66bc709ca019c)
2021-06-16Core/Globals: revert back to unordered_map for templatesariel-
Partial revert of commit b64c5043140dc7b7908e259e441de16cc0261320 See discussion on https://github.com/TrinityCore/TrinityCore/commit/b64c5043140dc7b7908e259e441de16cc0261320 (cherry picked from commit b75ff7d4bf13fb4778843c99521223becc096ca0)
2021-06-16Core/Globals: throw some RAII into ObjectMgr, and load templates into vectorsariel-
Ref #14274 (cherry picked from commit b64c5043140dc7b7908e259e441de16cc0261320)
2021-06-15Scripts/Scarlet Enclave: Quest The Endless Hunger will work correctly after ↵sirikfoll
Unworthy Initiate Respawn Due to dynamic spawns, we need to be able to update the Npc GUID after the respawn, otherwise the quest can only be completed by the first player (cherry picked from commit 72ff2e30c30d4d1b9bf22695b6a097eb82e3c76a)
2021-06-15Scripts/Pit of Saron: Tyrannus followupKeader
fix new issue caused by 947cb6a453892c6002738b424d66ca19c102a533 (cherry picked from commit 0b09e9ee4eff6e6c6101dd3b5a6880ae768691d6)
2021-06-15Scripts/Pit of Saron: Fixed Tyrannus not working after evadeKeader
(cherry picked from commit 947cb6a453892c6002738b424d66ca19c102a533)
2021-06-15Scripts/Trial Of The Crusader: Lord Jaraxxus rework (#21216)Keader
(cherry picked from commit a41cd416950a9d6d1e2c51c37229d6a3c9f9b4c7)
2021-06-14Core/Spell: SpellValueOverrides encapsulationariel-
- No sense to let scripts use SpellValueOverrides, we already have modifiers in CastSpellExtraArgs struct (cherry picked from commit 3b01cccd7eafaff9f3b8236a544e4fa46818926c)
2021-06-13Scripts/EasternKingdoms: implement Children of Goldshire event (#20745)Kittnz
* Script: Implement Childeren of Goldshire Notes: Need to update waypoints and default location of the childeren http://wowwiki.wikia.com/wiki/Children_of_Goldshire (cherry picked from commit a9c853ee3fc13d1aa59bde14df8f1f0a5b035ff3)
2021-06-13Core/Auras: removed caster dependency from coreariel-
- Decoupled Unit logic: split of spell critical chance into done (caster bonuses) and taken (target bonuses), this allows to precalculate caster bonuses on aura apply and then check victim's auras on damage/healing calc - Made static a bunch of methods (they no longer have this pointer because they are now called from periodic handlers which may or may not have an active caster in world) - Simplified all AuraEffect bonuses into AuraEffect::_amount, no more duplicated code - Critical chance and whether or not caster is player owned unit (for resilience calcs) is now saved one level upper, on Aura itself (it's impossible as of 3.3.5 to have different effects with different critical chances) - Minor cleanup of SPELL_DAMAGE_CLASS_NONE and Arcane Potency (#18813) crit handling Closes #19876 (cherry picked from commit cb9e72e521d3cc415dd15bf6912c87f89e41b92a)
2021-06-05Core/Reputation: Named all reputation flagsShauren
2021-06-04Core/Reputation: Implemented "friendship reputation"Shauren
2021-06-01Core/Criteria: Add all values of CriteriaStartEventShauren
2021-06-01Core/Criteria: Add all values of CriteriaFailEventShauren
2021-05-29Scripts/Outland: Implement Hellfire event in Honor Hold (#21110)Kittnz
* Script/Outland: Implement Hellfire event in Honor Hold This is hourly, event is only 60 seconds long. (cherry picked from commit acc73d469319a2b22804e55c0603e82615f5c8c2)
2021-05-29Core/Maps & Extractors: Move copypasted map file headers into a single ↵Shauren
shared file and replace #defines with enums
2021-05-27Scripts/Spells: Implement mage Alter Timesueastward
2021-05-17Scripts/World: New target dummy AI, because I don't trust the existing one ↵Treeston
in light of #21187. (cherry picked from commit a23c97a0fcc53e5da0bee5fc033dd3748774c337)
2021-05-16Scripts/Commands: New command: .debug threatinfoTreeston
(cherry picked from commit f45c211987794ff7e4192e0d3d4ca6bf67335fb5)
2021-05-169ad11e6 follow-up, prevent Halion respawn without lootTreeston
tagging #21198 (cherry picked from commit f0a394753ad9f1614fd696027c51ed2e297a02f6)
2021-05-16Core/Threat: Fix a potential exploit allowing players to damage a boss ↵Treeston
without them taking damage. Scripts/Halion: General cleanup of old hacks no longer needed under new combat system. (cherry picked from commit 9ad11e67fb6b410f18031ee68259866ea1354c8c)
2021-05-16Core/Map: New Map::ForceRespawn to override objections and force a respawn ↵Treeston
(equivalent to force = true). Use this to fix various GM commands. Scripts/Valithria: Fix an issue that could get the encounter stuck in an unloaded state. (cherry picked from commit 3bb33e3108c65ba8a1c35b934526562aa542b63b)
2021-05-16Core/Units: Remove Unit::EnergizeBySpell overload taking spellId argumentShauren
2021-05-16Core/Scripts: Remove deprecated overload of QuestReward without LootItemType ↵Shauren
argument
2021-05-16Core/Combat: Some more sanity check asserts to try and track down #21187.Treeston
Also, some anti-annoyance treatment for dot tele. (cherry picked from commit fdacf127395965b426185f05a7b1351138775e89)
2021-05-16MovementInform should overridesMoein
(cherry picked from commit 18f5eae835a0045d1180262bfcc4a2e6cf97c807)
2021-05-16Core/Misc: A variety of clean-up changes, mostly following up on 532ab1c to ↵Treeston
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 (cherry picked from commit 9f9507e6a1fd50a5ce643a4096c1712700244a61)
2021-05-16Core: Combat/threat system rewrite (PR #19930)Treeston
- 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. (cherry picked from commit 532ab1c7f8653d1a2e48aa1f1f8a9ba1041d4bb7)
2021-05-15Scripts/Spells: Clear arcane charge damage/cost/cast time modifier aura when ↵Shauren
reaching 0 arcane charges (power)