Commit Graph

58 Commits

Author SHA1 Message Date
hondacrx aac60cf9a8 Core/Units: moved health and power ordering predicates from Unit header into CommonPredicates
Port From (https://github.com/TrinityCore/TrinityCore/commit/2f6ed2c203b16a1d1e85f61a8b8e2cf3d1a4e784)
2024-02-06 10:01:30 -05:00
hondacrx 437fe2d8fd Core/Creatures: Moved autoattack handling from scripts to game
Port From (https://github.com/TrinityCore/TrinityCore/commit/605e5f94c0d71cad8e83fa5a07eaec4e6bed9cc3)
2024-02-05 18:18:30 -05:00
hondacrx b6b558f03a Core/Units: Allow autoattack if channelling with SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL
Port From (https://github.com/TrinityCore/TrinityCore/commit/bbe7cba7f411977d756f6f697056aafb920a5b0a)
2023-08-28 11:30:37 -04:00
hondacrx 097346aad5 Core/Units: Prevent backward melee attacks
Port From (https://github.com/TrinityCore/TrinityCore/commit/7d5d3cf655b3e701d8a570b03499a388476cbdf9)
2023-04-25 08:58:18 -04:00
hondacrx bd2eb5baab Core/Creature: Implemented sparring with max health percent thresholds
Port From (https://github.com/TrinityCore/TrinityCore/commit/0750b7f8455df39a64462636ca296c6f2aa2b048)
2023-04-25 08:38:55 -04:00
hondacrx d0b7bcb2fe Core/Creatures: Allow disabling melee attacks for all creatures, not just the ones using SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/d26d38075cdb56dcef77f05276a360e717cc5032)
2023-03-14 04:34:51 -04:00
hondacrx 5c22dca105 CreatureAI Cleanups 2023-01-24 23:18:14 -05:00
hondacrx f73e64396f Update license headers for all files. 2023-01-18 17:25:32 -05:00
hondacrx 9ea20a8925 Fixes some crashes. 2022-10-11 17:09:56 -04:00
hondacrx 0a28bd434a Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/b0164fb2b9cc35663e337d48660d5bca1e973d99)
2022-09-05 21:57:54 -04:00
hondacrx 68d8f664d7 Core/Spells: Implemented SPELL_ATTR5_NOT_ON_PLAYER and SPELL_ATTR5_NOT_ON_PLAYER_CONTROLLED_NPC
Port From (https://github.com/TrinityCore/TrinityCore/commit/acda6f9dcf411a1406b81e1a100125dbe34f942b)
2022-06-01 15:37:28 -04:00
hondacrx 8cddeb0fc5 Core/Spells: Rename SpellAttr3 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/88d7b58a3dd8b0eb95c233a20c1608ddce73d9ea)
2022-06-01 13:01:55 -04:00
hondacrx dc6eb46302 Core/Spells: Rename SpellAttr0 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/a31e6819447626cd7b6967665001ea89bf6a0298)
2022-05-31 21:05:21 -04:00
hondacrx 0534356aff Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken
Port From (https://github.com/TrinityCore/TrinityCore/commit/71c2f0af46b3ccec8c3422534e4403f3650b757d)
2022-05-29 20:34:44 -04:00
hondacrx 558e976a5e Core/Movement: remove redundant method MovementGenerator::NotifyAIOnFinalize and use existing Finalize - MovementInform implementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/0e0deaefd4e84c8069f6249778774f605fc5e628)
2022-05-26 20:08:35 -04:00
hondacrx ec88268d0f Core/SAI: Fix SMART_EVENT_WAYPOINT_START not being called at every waypoint checking wrong path id parameter
Port From (https://github.com/TrinityCore/TrinityCore/commit/c2d2df96dbe8e31e27283f73bad576ab42a3d579)
2022-04-28 10:36:37 -04:00
hondacrx 03c646d2c8 Core/CombatAI: Use TimeSpan overloads of EventMap
Port From (https://github.com/TrinityCore/TrinityCore/commit/d62b7c1e352e76f35490c22b2ab291ed299f4fa4)
2022-02-28 14:13:02 -05:00
hondacrx bbc0c07697 Core/SmartAI: allow AreaTrigger SAI scripts to use the player triggering it as base object for actions and targeting
Port From (https://github.com/TrinityCore/TrinityCore/commit/1ddde5ca3cac8ac03239882778af3702b59d582d)
2022-02-23 16:28:32 -05:00
hondacrx fcf47da853 Core/AI: Make critters flee as soon as engaged in combat and make them evade after they stop running in fear
Port From (https://github.com/TrinityCore/TrinityCore/commit/934c320d4b0da40691be7449f860447fe79b4083)
2022-01-07 12:44:09 -05:00
hondacrx 0d68984717 Misc fixes, and added GetDebugInfo() which was missed. 2022-01-05 13:11:32 -05:00
hondacrx 2842cc9c91 Core/AI: Finally move the "is creature engaged" flag to be a property of the creature AI, where it honestly always belonged.
Port From (https://github.com/TrinityCore/TrinityCore/commit/c13d83796f7b2111c5dcf8546bdd84eccd232ae3)
2022-01-01 17:05:29 -05:00
hondacrx eef0e8e875 Misc fixes 2021-12-07 20:57:02 -05:00
hondacrx 7c223b9a47 Core/Spells: Return CheckCast result from CastSpell
Port From (https://github.com/TrinityCore/TrinityCore/commit/ab988dc98284285b8ed0253f0bca1ddeb7eb9982)
2021-12-07 17:31:24 -05:00
hondacrx dcd4dc4226 Remove Deprecated code
Port From (https://github.com/TrinityCore/TrinityCore/commit/1ced6d219236084412e9e76dbbbf1eb615efa920)
2021-12-07 14:18:01 -05:00
hondacrx 26940fa650 Core/AI: Clean up charm AI handling.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e4e8c1c59c8b37216814526b4d2551f23934f465)
2021-10-31 13:55:26 -04:00
hondacrx 72018b983c Core/AI: Add a new LeavingWorld AI hook
Port From (https://github.com/TrinityCore/TrinityCore/commit/2642fb1a489e4b79a17bbb63127c8b3ce2823e1e)
2021-10-08 10:33:53 -04:00
hondacrx 5c4a7511ff Core/Spells: Cleanup spell effects
Port From (https://github.com/TrinityCore/TrinityCore/commit/8a4e1119ac21e2d1112d1717337597fe073e495f)
2021-09-08 17:40:50 -04:00
hondacrx 1d5337d3f7 Fixed a crash with AISpellInfoType having cooldown default to 0 should be default 5000. 2021-07-03 11:37:20 -04:00
hondacrx 9851142796 Core: Combat/threat system rewrite
Port From (https://github.com/TrinityCore/TrinityCore/commit/34c7810fe507eca1b8b9389630db5d5d26d92e77)
2021-05-18 12:25:40 -04:00
hondacrx 5b0391b1d9 Core/AI: UnitAI trimming part two. WaypointX methods kicked upstairs to CreatureAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/e0afca513a9bfbd82134942e1266e46811707cbb)
2021-04-28 10:58:26 -04:00
hondacrx cb471274e8 Core/AI: Kick Gossip functions upstairs, from UnitAI to CreatureAI - they only make sense for Creatures anyway.
Port From (https://github.com/TrinityCore/TrinityCore/commit/0aed5a35efd0305c1c3046430a1b348f2049a1c5)
2021-04-28 10:53:26 -04:00
hondacrx c925d7af40 Core/AI: CreatureAI.EnterCombat is now called CreatureAI.JustEngagedWith. There's also two new methods on UnitAI, though they're never invoked right now.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bce43de7f3fba618c370f2aba327d23dd30d1cdd)
2021-04-19 10:22:43 -04:00
hondacrx d0faa12ef6 Core/Spells: CastSpell Cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/)
2021-04-18 18:42:11 -04:00
hondacrx 62ec699ec6 Core: SOme code cleanup, more to follow. 2021-03-20 22:48:48 -04:00
hondacrx 0e77439e20 Core/Misc: waypoint movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/bf12bae46746149d870cd3e52ccd610f0a975047)
2021-02-04 10:32:48 -05:00
hondacrx fa689dac1e Core/Misc: Some missed $ for string interpolation and some cleanups to code. 2021-01-14 20:50:44 -05:00
hondacrx 56d007da4c Core/Quests: Fixed questgiver icons
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f3a2d2abf296d1eaf9788244100c91de8b7a619)
2020-12-14 14:01:25 -05:00
hondacrx c46c7ba2dc Core/PacketIO: Updated most packet structures to 9.0.1
Port From (https://github.com/TrinityCore/TrinityCore/commit/cab4c87d2d7f6d734ef067d6bf50f4b1d338a7bc)
2020-12-09 14:01:38 -05:00
hondacrx 7e2df34250 Misc cleanups/Fixes 2020-12-07 10:07:26 -05:00
hondacrx 3d3fd0f55f Core/Movement: waypoint movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/97585597f0b1aff93873fe4d757556731bc0c1b2)
2020-08-24 17:02:02 -04:00
hondacrx 10a73d8002 Core/AI: UnitAI::SelectTarget now applies offset BEFORE filtering by predicate (to match expected behavior).
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f59be31b0dc8b8b58da06fded6ef91dc170e8b6)
2020-08-22 14:47:58 -04:00
hondacrx e942d80fa5 Fix an oversight causing the main tank flag in SelectTarget to be inverted.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1e6480ee358977cdb6596a0dba8b2a1c4ef04a0b)
2020-08-22 14:39:39 -04:00
hondacrx 193ad3a48d Combat/Threat rewrite - prep & refactor
Port From (https://github.com/TrinityCore/TrinityCore/commit/8be23fcbbdf26e8169defd761e61765f301bebe0)
2020-08-22 11:58:19 -04:00
hondacrx d7954f4fc7 Core/Spells: Implement using different difficulty data from all spell related db2s, not just SpellEffect and SpellPower
Port From (https://github.com/TrinityCore/TrinityCore/commit/c7306439e7004288fb85890d6a5f730cf1761d71)
2020-06-18 12:39:39 -04:00
hondacrx c2aee387a8 Core/Scripts: unified scripted gossip/quest api
Port From (https://github.com/TrinityCore/TrinityCore/commit/6604849716bc73d82a4cdbf8c66bb188086ceae4)
2020-05-22 13:28:20 -04:00
hondacrx 2fc4e3e71f TC Ports:
Core/Misc: 522f537048 followup (https://github.com/TrinityCore/TrinityCore/commit/9a57e95f102a9d35ac8416d02e24c0dddbc755ed)
Core/CreatureAI: b6b0353bff followup (https://github.com/TrinityCore/TrinityCore/commit/5d411e0b21b1f1a4653d274d9b1cc7fef17f232b)
Core/Spell: move creature focus (https://github.com/TrinityCore/TrinityCore/commit/8c12f36915b2fddd48a5e4c9244c2b0498a64ae9)
Core/Unit: 2170541a51 followup (https://github.com/TrinityCore/TrinityCore/commit/2d4549023a6655d19671f7f7e6b4f7c9b71ae632)
Core/Misc: cleanup SetInFront uses (https://github.com/TrinityCore/TrinityCore/commit/104e745edfb89f95e34cad7840eae0b6e183bf94)
Core/Unit: 229444b74a follow-up (https://github.com/TrinityCore/TrinityCore/commit/6a96addadd5dea633b3066b8d0427302ba514364)
Core/Unit: revert 3ea46e57af (https://github.com/TrinityCore/TrinityCore/commit/a46286a803b41b375ed9352858c742626bb85720)
Core/Scripts: remove OnDummyEffect hook/sOnDummyEffect ai hook (https://github.com/TrinityCore/TrinityCore/commit/1929ca3aa14f6cd83ea3ac9d7e8c0e2ed0e87a26)
Core/Entities: moved PetAura handling to Player where it belongs (https://github.com/TrinityCore/TrinityCore/commit/4f6d38fe9d5c07e6e8eb88e517af71b6cdc4f9f8)
Core/Spells: Fixed Chilled to the Bone (https://github.com/TrinityCore/TrinityCore/commit/08635c740a7ee04da9b0cd5045075a9432121b06)
Core/Spell: implement pvp trinket immunity against Judgement of Justice (https://github.com/TrinityCore/TrinityCore/commit/05ba662d5daaa3428cc01cdaa3794bf5a073ef17)
2020-05-19 14:49:37 -04:00
hondacrx de44d88f7e Core/AI: added a function to allow 0 damage attacks (sparring) depending on target
Port From (https://github.com/TrinityCore/TrinityCore/commit/bb3f2a11cfa909a0b40450050f33a3893f6bb061)
2020-05-19 13:59:04 -04:00
hondacrx 230453c451 New Year 2020 :) 2020-01-09 11:35:00 -05:00
hondacrx 570aebce26 More refactoring of code. 2019-09-23 21:41:13 -04:00
hondacrx 35c06c09fd Some refactoring of code. and some cleanups 2019-09-21 12:11:16 -04:00