Commit Graph

11985 Commits

Author SHA1 Message Date
Shauren
be87c0e8b8 fix typo
(cherrypicked from 09cc6b3c33)
2019-06-15 18:41:09 +02:00
Shauren
48cc6f384d Core/Maps: Adjusted WorldObject::GetGridActivationRange() to never be less than map visibility distance for active objects to ensure equal ranges for activation/deactivation of grids
Updates #19072

(cherrypicked from 74bb92a582)
2019-06-15 18:41:09 +02:00
ariel-
248fd9691b Core/Spell: properly add SPELLMOD_COOLDOWN to spells without initial cooldown
Closes #15605

(cherrypicked from 3a65c70657)
2019-06-15 18:41:09 +02:00
Kittnz
5291842a33 Game/Scripting: Add OnPlayerRepop hook
Called when a player presses release when he died

(cherrypicked from d550ba7392)
2019-06-15 18:41:09 +02:00
treeston
cc020b2a0f Core/Creature: Prevent boss creatures from ever respawning naturally.
(cherrypicked from 3ddcf40037)
2019-06-15 18:41:09 +02:00
ariel-
a29a157e34 Core/SmartAI: Delay SMART_ACTION_FORCE_DESPAWN by at least one world tick
- Restore old despawn behavior of SmartAI despawning (without reintroducing the run time logs caused by IsSmart)
- Some SAIs relied on this to function (for example #1249)

Partial reverts commit 4fc4c81e89

(cherrypicked from aa7ef797d6)
2019-06-15 18:41:09 +02:00
xinef1
3f7fe6f8a5 Core/Spells: Remade trajectory target selection (#19048)
* Remade trajectory target selection
* Added possibility to apply conditions to trajectory spells
* Properly recalculate delay time if CMSG_UPDATE_PROJECTILE_POSITION is received

(cherrypicked from c6060dd0c5)
2019-06-15 18:41:09 +02:00
xinef1
b711f0bcae Core/Spells: Added SPELL_FAILED_NOTHING_TO_STEAL error (#19036)
Corrected Dispel check in sanctuary area
Added root check for SPELL_EFFECT_JUMP and SPELL_EFFECT_JUMP_DEST

(cherrypicked from 3c605ba614)
2019-06-15 18:41:09 +02:00
xinef1
68cc366d88 Core/Spells: Corrected summon category SUMMON_CATEGORY_VEHICLE (#19052)
(cherrypicked from 227d5a9288)
2019-06-15 18:41:09 +02:00
xinef1
8d6d00dc15 Core/Spells: Corrected execution time calculation for dst targets (#19039)
(cherrypicked from c1ca852e16)
2019-06-15 18:41:09 +02:00
xinef1
d1cbd8a837 Core/Pets: Fixed flashing pet attack button (#18906)
(cherrypicked from 0fa38d0ae0)
2019-06-15 18:41:09 +02:00
xinef1
67000a7826 Core/Spells: Properly send autorepeat cancel packet to self and fix some problems with autoshot (#18918)
Closes #13595
Closes #14460

(cherrypicked from 587786ce66)
2019-06-15 18:41:09 +02:00
ariel-
2b0c73960b Core/Spell: unified handling of SPELL_ATTR5_USABLE_WHILE_* attributes
Allowed mechanic mask is calculated on startup and auras checked against those mechanics
Closes #18798

(cherrypicked from 3544577e48)
(cherrypicked from 53eb6ec616)
2019-06-15 18:41:09 +02:00
ariel-
6135ee1ad7 Core/Creature: don't allow turning if spell would cancel due to turning to face target
Closes #18549

(cherrypicked from 6b55faba06)
(cherrypicked from  c83092a127)
2019-06-15 18:41:09 +02:00
Shauren
6bc8240385 Core/Misc: Fixed logging output 2019-06-15 10:22:58 +02:00
Shauren
5c3a06ab06 Core/Misc: Changed creature_template.family to int
Closes #23296
2019-06-15 10:22:33 +02:00
Shauren
101f82855e Fix warnings and nopch build 2019-06-08 17:57:58 +02:00
Shauren
fbf05e69bb Core/Achievements: Define and implement new ModifierTree types 2019-06-08 17:10:10 +02:00
Shauren
bcaaa3d6f6 Core/DataStores: Updated db2 structures to 8.1.5 2019-06-08 17:10:00 +02:00
Shauren
82c7b6c568 Core/Items: Drop item random property and suffix - all random stats must be given using bonus lists 2019-06-08 17:09:20 +02:00
Shauren
455959c606 Core/PacketIO: Rewrite updatefield handling 2019-06-08 17:06:57 +02:00
Shauren
31fda79556 Core/PacketIO: Updated packet structures to 8.1.5 2019-06-08 17:03:15 +02:00
Shauren
d180944f59 Core/AreaTriggers: Document scale curve fields 2019-05-05 17:54:39 +02:00
Aokromes
91409cc77e Core/SAI: Add a 5th parameter to SAI events
CP of 1c60af6328

By jackpoz
2019-04-30 13:03:49 +02:00
Shauren
ca112b0dae Removed a bunch of "reserved" SAI actions 2019-04-18 00:00:15 +02:00
Aokromes
b28d55b3dc Update SmartScriptMgr.h 2019-04-17 23:51:48 +02:00
Aokromes
0bb8f69164 Core/SmartScripts: Reserve SMART_ACTION_PLAY_CINEMATIC 2019-04-17 22:09:02 +02:00
Shauren
f729050900 Core/Maps: Ensure all child terrain maps are created before doing anything on parent map such as loading respawn times and corpses 2019-04-06 11:13:34 +02:00
Shauren
16e06a5392 Core/Mail: Defined new mail message type 2019-03-07 23:12:43 +01:00
Shauren
25594c5a8e Core/Misc: Fix static analysis issues
Fix static analysis issues reported by Coverity
2019-02-16 17:37:16 +01:00
Shauren
d5992f7711 Core/Spells: Add missing spell and aura effect handler array entries
Closes #23015
2019-02-04 16:47:41 +01:00
Kittnz
83e6fde066 Core/Objects: increase sight range of all Infinite, Gigantic and Large objects & correct general default visibility distance (#22892)
Note: This does not make the object active.

Some info on range
https://trinitycore.atlassian.net/wiki/spaces/tc/pages/74950924/Lua+Scene+Script+Documentation#LuaSceneScriptDocumentation-ActorAOIRange

#21111 #21681 #22891

Thanks Kinzcool & Kelno
2019-01-16 20:48:01 +01:00
Shocker
22589ee862 Core/LFG: Change lock status to LFG_LOCKSTATUS_NOT_IN_SEASON for disabled dungeons, more explanatory
Shows "This instance is not available yet" instead of "You are already locked to this instance"
2019-01-12 20:56:53 +02:00
Shocker
f53a1fb1bc Core/Spells: Fix SPELL_AURA_MOD_ROOT_2 not proccing on damage 2019-01-12 20:54:01 +02:00
Shauren
3a323f2b60 Core/Chat: Fixed addon chat messages using C_ChatInfo.SendAddonMessageLogged
Closes #22926
2019-01-11 18:23:10 +01:00
Shauren
50cfeb9aa4 Core/Misc: Improved ip2location code and set it to disabled by default
(cherry picked from commit 0ead73516a)
2019-01-09 17:35:18 +01:00
Gooyeth
163c487be7 Common: Replace ip2nation by ip2location. (#21957)
Replace ip2nation by ip2location.

Download: https://lite.ip2location.com/database/ip-country
(cherry picked from commit 2fe4ab94c5)
2019-01-09 17:35:13 +01:00
vincent-michael
5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
Ovah
fe388d789b Core/Player: update player phase before updating area depending auras (#22872) 2018-12-17 21:16:17 +01:00
Quadralqt
ba44e1a8db Core/Spells: Update AOE Damage Cap (#22871) 2018-12-17 16:43:42 +01:00
Shauren
e9bcae1fad Core/Misc: Fixed nopch and clang 6.0 warnings 2018-12-09 16:07:38 +01:00
Shauren
783d640bd6 Fix nopch 2 2018-12-09 15:16:17 +01:00
Shauren
b8110fce32 Fix nopch 2018-12-09 15:09:09 +01:00
Shauren
f94deace76 Merge branch 'bfa' 2018-12-09 14:45:03 +01:00
xinef1
8725eec9c1 Core/Loot: Only allow the roll winner to loot the item he won in case it cannot be added to inventory instantly (full or any other reason) (#19037)
(cherry-picked from ab6ac42bf0)
2018-12-09 14:18:42 +01:00
xinef1
fef8e5fe14 Core/Pets: Fixed bug where pets tamed from large npcs had too big combat reach (#18909)
(cherry-picked from 2ecc0c0775)
2018-12-09 14:18:42 +01:00
xinef1
befea2f7a6 Core/Creatures: Stop falling if corpse is removed (can happen when alive unit is despawned instantly in air) (#18995)
Do not allow to start waypoint movement when unit is dead

(cherry-picked from f86ca9e3c9)
2018-12-09 14:18:42 +01:00
Keader
2e45423537 Core/Entities: Implemented CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE (#18980)
(cherry-picked from 15ea5b1b8d)
2018-12-09 14:18:42 +01:00
xinef1
d8f701e1ac Properly clear focused target on evade (#18992)
Closes #18095

(cherry-picked from 3c81a9a6d4)
2018-12-09 14:18:42 +01:00
xinef1
2b20cb5a64 Core/Spells: Added very little tolerance level to completed casts to ensure that spell cast at target standing at the max possible range is finished properly even if target moves a little (#18969)
(cherry-picked from 66dc97bb27)
2018-12-09 14:18:42 +01:00