Commit Graph
418 Commits
Author SHA1 Message Date
Shauren 884662a75a Core/Scripts: Added SpellEffectInfo argument to CalcDamage and CalcHealing spell script hooks 2024-12-21 00:40:08 +01:00
Shauren 605e5f94c0 Core/Creatures: Moved autoattack handling from scripts to game 2024-01-08 22:23:12 +01:00
ModoX 0e2f041728 Core/InstanceScript: Refactored door types to reflect its behavior (#29406) 2023-11-06 00:11:42 +01:00
Shauren 4bf4ee57ff Scripts/Nexus: Removed old code to get team in instance 2023-09-18 22:39:12 +02:00
Shauren 8594fcfe8a Scripts/Spells: Converted some damage calculating scripts to use new hooks as examples 2023-08-02 00:12:16 +02:00
Shauren 2e7e49b749 Scripts/Spells: Removed unneccessary PrepareSpellScript and PrepareAuraScript uses 2023-07-24 10:48:50 +02:00
TeleqraphandShauren 88ff97c1f9 Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)
Co-authored-by: Shauren <[email protected]>
2023-07-20 19:09:27 +02:00
Shauren 3df16c12b7 Core/Scripts: Move EvadeReason outside of CreatureAI class 2023-01-19 21:23:06 +01:00
Shauren d8a4668c77 Core/Misc: Add missing Containers.h include where neccessary 2023-01-06 16:44:11 +01:00
Shauren 46e0056196 Scripts/Instances: Add dungeon encounter data 2022-10-04 00:19:38 +02:00
offl 1bb6440d75 Scripts/Nexus: Rework Telestra (#28104)
Closes #27792 Closes #27941

(cherry picked from commit 93db014cb9dec117c23a5402c83e6c67ca033006)
2022-09-05 19:55:25 +02:00
offl 249f55a483 Scripts/Oculus: Update Drakos the Interrogator (#28053)
(cherry picked from commit 2d348b6d8b39f93a7cc18731aa394116332c5cf5)
2022-09-05 19:27:04 +02:00
offl 6fb332d935 Scripts/Spells: Get rid of several DB spell scripts (#28048)
(cherry picked from commit 3808e614d9760a2588fec0c1b0b4c30feda36dcc)
2022-09-05 19:26:59 +02:00
Shauren cfca26c264 Core/WorldStates: Migrate instance script worldstates to new system 2022-06-30 00:16:41 +02:00
Shauren 1c62b0b90f Scripts/Instances: Replace manual criteria timer starts in instances with new GameEvents api 2022-04-24 13:58:18 +02:00
Shauren e1abd8256b Core/Achievements: Implemented criteria flag "Reset on Start" and removed manual script workarounds for it 2022-04-24 12:36:28 +02:00
Shauren b47185cabf Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag 2022-03-27 18:14:47 +02:00
offl c4906ce60b Core/Misc: Rename UNIT_FLAG_NOT_SELECTABLE to UNIT_FLAG_UNINTERACTIBLE (#26913)
(cherry picked from commit c4741a131a0a28b69c228d3637beab7090e5f1e3)
2022-03-15 23:03:26 +01:00
offl 6a5f3835f3 Scripts/Misc: Remove useless comments & Varos' Centrifuge Shield adjustments
(cherry picked from commit b2fffe674d545f1c5ed5ada3041f23872dccfb30)
2022-03-15 22:24:44 +01:00
Giacomo Pozzoni 71c2f0af46 Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken (#26787)
* Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken

* Update scripts

(cherry picked from commit 0800ab20a8039620fd271a43c173c008af68c22a)
2022-03-12 14:45:04 +01:00
offl 4bdf5261e6 Scripts/Misc: Remove few more evil flags
Ref #25764

(cherry picked from commit 180f495c7037dc3be61a33dee5745833fd993d4c)
2022-03-11 01:41:20 +01:00
offl bea0528436 Scripts/Instances/EoE: Update Malygos to new register model (#26583)
(cherry picked from commit 7c6ee033e05faca9a013037f1a9c9bbdf62cd702)
2022-03-11 01:04:48 +01:00
offl 012444ba80 Scripts/Spells: Add comments with id & name of spells part 4
(cherry picked from commit e7e47866066f0b318c986c355dc4476b5948e622)
2022-03-10 23:53:31 +01:00
offl 0408693646 Scripts/Spells: Add comments with id & name of spells part 3
(cherry picked from commit 03c727326dce5d990fd453f42a92300dbd68dc0e)
2022-03-10 23:52:03 +01:00
offl cec9718d22 Scripts/Spells: Add comments with id & name of spells part 2
(cherry picked from commit 0e804c95ac1e2ae048682fd3b52a02e8f6a88c82)
2022-03-10 23:13:25 +01:00
offl f2777596a0 Scripts/Spells: Add comments with id & name of spells part 1
(cherry picked from commit 80a4b7f1e2f4baae40f08e87cb8cda0a1db833b9)
2022-03-10 22:41:12 +01:00
HelloKitty a67bb1f575 Core/Map: Added Map::SetZoneOverrideLight std::chrono overload (#26486)
* Core/Map: Added Map::SetZoneOverrideLight std::chrono overload

* Scripts: Replace Map::SetZoneOverrideLight usages with new std::chrono overload

* Core/Map: Remove non-chrono Map::SetZoneOverrideLight overload

(cherry picked from commit e33c4b8f7f18c89fec3d95531fdccad526c12c10)
2022-03-09 14:56:04 +01:00
offl d735e6196d Scripts/Oculus: Update instance scripts to new model (#26445)
(cherry picked from commit 1c0029321a845ca44966e4334f184b514fa4a172)
2022-03-09 00:07:26 +01:00
offl 50d8c824e2 Scripts/Oculus: Update Varos to new model (#26444)
(cherry picked from commit f05e0360fc8b3ed9b29849a07a5a5b7468161d9a)
2022-03-09 00:05:52 +01:00
offl 2d5a833ea5 Scripts/Oculus: Update Urom to new model (#26443)
(cherry picked from commit 2a57b6627f7f81ffae6dbfdd933466c4bfdbc378)
2022-03-09 00:03:51 +01:00
offl f14a2afd8b Scripts/Oculus: Update Eregos to new model (#26442)
(cherry picked from commit 2c1f14e0e2cbc3325140433e360143d1ea84a36b)
2022-03-09 00:00:58 +01:00
offl af4434223d Scripts/Nexus: Update Ormorok to new model (#26441)
(cherry picked from commit 87422fe015befd6782fba1faa59d56d9c4a5dac8)
2022-03-08 23:58:43 +01:00
offl 4ec948b2f0 Scripts/Nexus: Update Commander to new model (#26440)
(cherry picked from commit abed54bf271a742dc61250f59ea1dd7c2c9c13b4)
2022-03-08 23:58:26 +01:00
offl c723d42c81 Scripts/Nexus: Update Telestra to new model (#26439)
(cherry picked from commit dfdf892f89f22ef01be5f57aca84c1d880e7f75a)
2022-03-08 23:55:34 +01:00
offl a8a222a3e4 Scripts/Nexus: Update Keristrasza to new model (#26438)
(cherry picked from commit 08fc6314d08bc5690acb8f00e4edd287a7df79d9)
2022-03-08 23:49:48 +01:00
offl f0e8bcb453 Scripts/Nexus: Update Anomalus to new model (#26424)
(cherry picked from commit dadbd4cdab0e22c9851ce41c9e4b62e7456d1b27)
2022-03-08 22:42:49 +01:00
offl 06396c34fd Scripts/Oculus: Update Drakos to new model (#26423)
(cherry picked from commit 82969a691cfc0fc14bd90888a79dfe0dc5cea9e7)
2022-03-08 22:41:45 +01:00
jackpoz 3886c82d0f Scripts/EoE: Attempt to fix players getting stuck after dying
Attempt to fix players getting stuck after dying caused by a hack that calls SetControlled(true, UNIT_STATE_ROOT) by calling the opposite when a dead player leaves the instance, i.e. on releasing.
Close #24458

(cherry picked from commit dc21ac342ec3293ecf37b6a87244c46a39ff687f)
2022-03-06 19:00:26 +01:00
Shauren 439b027d48 Core/Misc: Cleanup unused includes 2022-02-13 15:07:00 +01:00
Shauren ad4f4bfab7 Core/Misc: Minor game include cleanup 2022-02-13 00:49:10 +01:00
Maks Szokalski bc04acb726 Add "On" to some gossip methods in AI (#25415)
* Add "On" to some methods

* Update npc_innkeeper.cpp

* Update zone_borean_tundra.cpp

(cherry picked from commit 41188eb535e445b73909659980257da2939e4be4)
2022-02-05 22:18:19 +01:00
NoName ee620856ad Core/Movement: Corrected Animation Tier handling (PR #24875)
Co-authored-by: Warpten <[email protected]>
Co-authored-by: Ovahlord <[email protected]>
Co-authored-by: Carbenium <[email protected]>
(cherry picked from commit dad187615df603ad8614531a0ec84c1a5e136838)
2022-02-05 15:40:31 +01:00
Shauren 0a1acb9c05 Scripts/Spells: Replace RegisterAuraScript with RegisterSpellScript and remove it
(cherry picked from commit 7d4fbf706ae19481468901ccd65c497fcabe56bf)
2022-02-04 00:27:10 +01:00
Carbenium 82fce41852 Core/WorldObject: Replace non-std::chrono SummonGameObject overloads
Also fix intended despawn time of GOs used by the "Engineering a Disaster" quest

(cherry picked from commit 8642aaaf9268364454b409db7eb62f31210e6d6c)
2022-01-24 12:55:43 +01:00
Carbenium 3bba8d50b1 Core/WorldObject: Remove non-std::chrono SummonCreature overload
Remove
TempSummon* SummonCreature(uint32 entry, Position const& pos, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0, uint32 vehId = 0, uint32 spellId = 0);

(cherry picked from commit a41f599be72ccc88b13c1cf725f20cee4a5335d7)
2022-01-24 12:39:59 +01:00
Carbenium 310f996b1d Core/WorldObject: Partially std::chrono-ify SummonCreature overloads
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0);
to
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime = 0s);

(cherry picked from commit 1131229ee9c43704b11187f0b11c327db92018b6)
2022-01-24 11:55:32 +01:00
Carbenium 271462ceec Scripts/Northrend: Use std::chrono overload of Creature::DespawnOrUnsummon
(cherry picked from commit fc9e7226c0785fd12b01b724ed3666e6c08dd017)
2022-01-23 23:57:56 +01:00
Peter Keresztes Schmidt b7d5a1653d Scripts/Nexus: Use std::chrono::duration overloads of EventMap (#25033)
Contributes to #25012

(cherry picked from commit 2f538258d9e2e1162766efaee8cb61eeae4f921e)
2022-01-23 15:49:27 +01:00
Shauren b4952db464 Core/Units: Named unit flags linked to CreatureDifficulty flags 2022-01-22 13:21:15 +01:00
Peter Keresztes Schmidt c4098897a8 game/AI: Convert SelectAggroTarget to enum class (#24818)
* game/AI: Convert SelectAggroTarget to enum class

* game/AI: Rename SelectAggroTarget to SelectTargetMethod

(cherry picked from commit 418c3b1fd50664aad035bd975a65281e82ba2dea)
2022-01-06 21:53:27 +01:00