Commit Graph

2281 Commits

Author SHA1 Message Date
hondacrx 0464fe61bb Core/Spell: do not allow auras from dynamic objects to stack if they come from the same spell cast by the same caster.
Port From (https://github.com/TrinityCore/TrinityCore/commit/55611104bedefc301eb4bee8bc282057307ebde4)
2021-12-27 15:35:20 -05:00
hondacrx 13a3b6f06c Misc/Config: set decay timer for unlooted normal creatures to 5 minutes.
Port From (https://github.com/TrinityCore/TrinityCore/commit/2c55730a0155f7f7da5cbed70ea21a0b8923aad7)
2021-12-27 15:28:38 -05:00
hondacrx dafb8637d9 Core/Entities: Regenerate updatefields
Port From (https://github.com/TrinityCore/TrinityCore/commit/776298207a9522858af7b00ea2f5b0c65bbe049e)
2021-12-27 15:27:41 -05:00
hondacrx 6396bbca38 Core/Creature: Reworked creature aggro radius calculation
Port From (https://github.com/TrinityCore/TrinityCore/commit/3fc20584bc14ca0edb007b3d0b6861d19d6d33d4)
2021-12-27 15:25:53 -05:00
hondacrx 7a47eaeb24 Core/Conditions: allow spellclick conditions to properly work for aura apply/remove
Port From (https://github.com/TrinityCore/TrinityCore/commit/edf12fd6a1b989d7785bc0619002eda1ccc87368)
2021-12-27 15:23:22 -05:00
hondacrx 08678c970e Core/Unit: Implement more helper methods
Port From (https://github.com/TrinityCore/TrinityCore/commit/104ec7a81a5bb782f81fd05b872bf664e4de1c89)
2021-12-26 20:04:34 -05:00
hondacrx 55189b9395 Core/Quest: Fix repeatable quest mark
Port From (https://github.com/TrinityCore/TrinityCore/commit/c5173aca15fcabba9ffce6393cf17868dc30750f)
2021-12-26 19:59:39 -05:00
hondacrx 639f5cc75d Entities/Unit: Properly unset engaged flag for creates that cannot have a threat list on combat exit.
Port From (https://github.com/TrinityCore/TrinityCore/commit/513b35ea2f7f679585e34a490685327c449e574b)
2021-12-26 19:57:05 -05:00
hondacrx a3f2e9f372 Entities/Player: Fix an edge case where overlapping CCs could prevent player movement from being re-enabled.
Port From (https://github.com/TrinityCore/TrinityCore/commit/096269349cd82a44f57f36b17dfe4e5e32a39f9a)
2021-12-26 19:56:01 -05:00
hondacrx bddde92a0f Entities/Player: Clean up client control handling behavior around possession. Mind Control should no longer cause various weirdness.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bba4696de715b79b31e154d1a8e1597507812ece)
2021-12-26 19:54:55 -05:00
hondacrx 6d73a59f63 Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender
Port From (https://github.com/TrinityCore/TrinityCore/commit/27886c7f5d6cfc221ea67aab210f96859d725e05)
2021-12-26 19:51:26 -05:00
hondacrx 39dd51370f Scripts/Spells: Dimensional Ripper - Everlook
Port From (https://github.com/TrinityCore/TrinityCore/commit/b8d675eba761a5616c7d69a78851ea61af61f4f6)
2021-12-26 19:36:53 -05:00
hondacrx ce3b99471d Core/Quest: do not send SMSG_QUESTGIVER_OFFER_REWARD right after SMSG_QUESTGIVER_QUEST_FAILED.
Port From (https://github.com/TrinityCore/TrinityCore/commit/ecce30a8072fd9352edae378a182f6bf6619d412)
2021-12-26 19:32:56 -05:00
hondacrx 5ba1f34108 Core/Instance: add new method
Port From (https://github.com/TrinityCore/TrinityCore/commit/934b72262d390f4e2cb87f07a4c1512a24a3b0d0)
2021-12-26 19:27:28 -05:00
hondacrx b456a0403f Core/Instance: add new hook & method
Port From (https://github.com/TrinityCore/TrinityCore/commit/6a63200e40d286dd49cc90135a519b0680a6f435)
2021-12-26 19:25:32 -05:00
hondacrx f624076063 Core/Instances: improve DoRemoveAurasDueToSpellOnPlayers & DoCastSpellOnPlayers handling
Port From (https://github.com/TrinityCore/TrinityCore/commit/70fd6e7398040dc197c3470c6db8aa82f4e42ab1)
2021-12-26 19:21:16 -05:00
hondacrx 73fa489610 Misc: some corrections after recent merges
Port From (https://github.com/TrinityCore/TrinityCore/commit/cadbf42ea4489933f28caf356f8c8d09ca243083)
2021-12-24 21:38:37 -05:00
hondacrx 409be0be01 Scripts/Spells: Ultrasafe Transporter: Toshley's Station
Port From (https://github.com/TrinityCore/TrinityCore/commit/996b7c1f0ebb22b424d7406adf88b43143b2ede4)
2021-12-24 21:34:18 -05:00
hondacrx 7ca6823705 Core/Loot: fix issue that prevented players from rolling for an unique-category item while an equipped item shares the same unique-category.
Port From (https://github.com/TrinityCore/TrinityCore/commit/5ca9f51033c92f29eb1bc915fcbf785773ed586c)
2021-12-24 21:28:30 -05:00
hondacrx b835ecddc1 Scripts/Spells: Dimensional Ripper - Area 52
Port From (https://github.com/TrinityCore/TrinityCore/commit/ea4c1ae7d0c4b3420b1d78623c5254466c64f43b)
2021-12-24 21:27:09 -05:00
hondacrx 5c41122916 Core/GameObject: do not allow consumable chests to restock while partially looted.
Port From (https://github.com/TrinityCore/TrinityCore/commit/2fea2a1e8104856587d0eff651eb2199dfcd0513)
2021-12-24 21:22:21 -05:00
hondacrx 5c4a42317e Core/GameObject: fix some cases where summoned gameobjects of a type different than chest or goober would behave wrongly.
Port From (https://github.com/TrinityCore/TrinityCore/commit/f136d3cfe0e92ac8578c631cc7c2c43086ba796f)
2021-12-24 21:20:14 -05:00
hondacrx 89661001d5 Core/Spell: fix some issues with taunt spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/575f42089e2014c3df64f0468ed25c45a544f6d8)
2021-12-24 21:18:27 -05:00
hondacrx f39f4ce120 Core/Mail: include 100g in the mail sent after turning in the quest The Wrath of Neptulon
Port From (https://github.com/TrinityCore/TrinityCore/commit/9d40a105e61376dd5f377f5d1e8131f6669ffdca)
2021-12-24 21:15:33 -05:00
hondacrx 2a9a1a1d6b Core/GameObject: implement restock mechanic for non-consumable gameobjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/c637260a37271a9ed2b19d44a62210e833010bde)
2021-12-24 21:14:21 -05:00
hondacrx 958dbbb4d9 Core/SAI: add param3 to SMART_ACTION_CALL_TIMED_ACTIONLIST to allow it to override a currently running actionlist.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d197a7ce9b376f45e5de1a5aab3df75b77b62d8f)
2021-12-24 21:09:51 -05:00
hondacrx 85d81d39fc Core/GameObject: restore old behavior for non-consumable chests with restock timer (make them despawn).
Port From (https://github.com/TrinityCore/TrinityCore/commit/7c7bb95da58bc9621f293c1c4d560f426ae0df64)
2021-12-24 21:08:08 -05:00
hondacrx 445b24188f Core/GameObject: don't allow non-consumable goobers to despawn on use
Port From (https://github.com/TrinityCore/TrinityCore/commit/836a1bc62272861a595b339345eb1ac67c543c5b)
2021-12-24 21:07:14 -05:00
hondacrx a75bc5188f Core/Spell: allow damage from binary spells to go through elemental resistance's damage reduction.
Port From (https://github.com/TrinityCore/TrinityCore/commit/09e849bb69561fe91a9b8c1aa72555eb6c65d0b2)
2021-12-24 21:05:41 -05:00
hondacrx 0f248e2faa Core/SAI: allow creatures to handle gameobject spellhit SAI events.
Port From (https://github.com/TrinityCore/TrinityCore/commit/83a9222c390110ae082512ed858a5580a958aa21)
2021-12-24 21:05:03 -05:00
hondacrx b3759bb7b0 Core/SAI: do not pass old creatureData to UpdateEntry() and keep current health when changing a NPC's entry.
Port From (https://github.com/TrinityCore/TrinityCore/commit/62f5d9b46bd20faf90dd973e2786d1517b1b3bd2)
2021-12-24 20:57:58 -05:00
hondacrx 5a7d42530e Core/AI: Actually accurately reproduce the logic from before 8499434 that determines what summons start following on appearance. Third time's the charm?
Port From (https://github.com/TrinityCore/TrinityCore/commit/c9d52c954793404af02f75af97390d7c82c433ff)
2021-12-24 20:55:55 -05:00
hondacrx 3126ac721d Core/SAI: silence wrong SAI error when using SMART_ACTION_SET_DATA on a creature using CreatureAI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8c1adcf8f28a7ce90113175c732b98556c6bbb8)
2021-12-24 20:51:13 -05:00
hondacrx 31e0a1f476 Core/Spells: Moved SpellVisual functions from Unit to WorldObject
Port From (https://github.com/TrinityCore/TrinityCore/commit/54f607641ac9008a588b8ff635a9ed7ee7a5f976)
2021-12-24 20:50:24 -05:00
hondacrx 5de09a5046 Core/BattlePets: Added default cooldown to revive battle pets
Port From (https://github.com/TrinityCore/TrinityCore/commit/1a846415493289fc3852e56c82514d85c421267c)
2021-12-24 20:41:51 -05:00
hondacrx 8ff2e2d75b Core/Creatures: Fixed crash in CreatureAI::JustAppeared caused by scripted summons without SummonProperties
Port From (https://github.com/TrinityCore/TrinityCore/commit/1c00109756815b6888303b31748595521fd7809c)
2021-12-24 20:25:47 -05:00
hondacrx d255912aa6 Core/AI: minimize further undesired behaviours
Port From (https://github.com/TrinityCore/TrinityCore/commit/d7e544e81626ab477024c057e3e7a2a45083f3a7)
2021-12-24 20:22:19 -05:00
hondacrx bd3768c4ef AI/TotemAI: Tell Shaman Totems to stay put and stop moving.
Port From (https://github.com/TrinityCore/TrinityCore/commit/007eb8c9311320217fdda0bc0e6c05044254edfe)
2021-12-24 20:20:05 -05:00
hondacrx 925119c2ca AI/SmartAI: Properly forward to inherited CreatureAI::JustAppeared in SmartAI::JustAppeared.
Port From (https://github.com/TrinityCore/TrinityCore/commit/743d022cee936d47a60f23e72fda7fb72ee61907)
2021-12-24 20:16:01 -05:00
hondacrx 3cf7f6b831 Combat/Threat: Split ThreatManager::NotifyDisengaged off from ThreatManager::ClearAllThreat. NotifyDisengaged signifies intent to clear the engagement flag, and should only be called from AI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/38d7c1530a65a7ff1bd10775c4a35269b2416538)
2021-12-24 20:15:10 -05:00
hondacrx 3c38758f09 AI/SmartAI: Move SMART_EVENT_RESPAWN invocation from ::InitializeAI() to ::JustAppeared().
Port From (https://github.com/TrinityCore/TrinityCore/commit/e398bb16648b483c97a68b2a29b25173b2a71261)
2021-12-23 20:24:47 -05:00
hondacrx 2d87d0c75d Core/AI: Remove EnterEvadeMode calls from Guardian/Summon spell handlers. Add follow logic to CreatureAI::JustAppeared.
Port From (https://github.com/TrinityCore/TrinityCore/commit/9f7d3ebd6a474c2e325698b1665ab2939926cab6)
2021-12-23 20:23:16 -05:00
hondacrx e28b42b270 Entities/Unit: Fix an issue where Unit pointers could be left dangling if a channeled Charm was interrupted by a control aura application.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d10554da14fb8371072567f673c9f919cbe6b929)
2021-12-23 20:19:55 -05:00
hondacrx 1f58dc2b53 Entities/Unit: Cleanup all the direct accesses to m_unitMovedByMe. Refactor the field to be protected. Add assertions to catch dangling pointers.
Port From (https://github.com/TrinityCore/TrinityCore/commit/edc75831194bc2419e3abada47121fadf4b2aa8d)
2021-12-23 20:17:08 -05:00
hondacrx 4584543d45 some more cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/f29644efd5cf430c321ad68122c385b4535069da)
2021-12-23 20:03:50 -05:00
hondacrx cd1edd609f Core/Creature: Attach out-of-combat health regen to the Engaged system, not the Combat flag.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e3411b4740be2241c49361f9f6223f52f4389c7d)
2021-12-23 20:03:03 -05:00
hondacrx 749b77d060 Core/Misc: Rename Unit::AttackedTarget to Unit::AtTargetAttacked to match naming scheme for these notifiers
Port From (https://github.com/TrinityCore/TrinityCore/commit/dabdad3b47d7438327d3ee861eddd68e9bea68b1)
2021-12-23 20:02:14 -05:00
hondacrx 8694a2ae24 Core/Entities: Kick engagement logic upstairs to Unit (from ThreatManager), since all Units with AI need it (not just those with threat list).
Port From (https://github.com/TrinityCore/TrinityCore/commit/35e55f10899712435102764671241b94a2026599)
2021-12-23 20:00:45 -05:00
hondacrx ff48f2cab9 Core/Instance : Fix instance resetting exploit
Port From (https://github.com/TrinityCore/TrinityCore/commit/1c3c59d7fac0abb02cc1fb433338737ea119831d)
2021-12-22 20:54:24 -05:00
hondacrx 8a64e18f31 Oops clicked too soon. 2021-12-22 20:47:37 -05:00