Commit Graph

22460 Commits

Author SHA1 Message Date
offl
eea3cf1401 DB/Quest: Convert & update support for 'Escorting Erland' to SAI
Closes #24834
2020-06-29 01:24:45 +02:00
offl
fb58ca0bf5 DB/Quest: Convert & update support for 'Pyrewood Ambush' to SAI
Closes #24833
2020-06-29 01:11:10 +02:00
Keader
6d16c39e76 Scripts/Warrior: Implemented threat effect of Intervene 2020-06-28 13:14:25 -03:00
Shauren
b304f4ad8d Nopch fix 2020-06-27 20:34:19 +02:00
Shauren
0468c70dfe Core/Maps: Implemented getting area id from gameobject spawns
Yes, you can now spawn LK platform anywhere and it will treat you as inside Icecrown Citadel

(cherry picked from commit 42f9deb21e)
2020-06-27 20:23:30 +02:00
jackpoz
54c701cf0d Core/Common: Replace ASSERT(false, "...") with ABORT_MSG("...") 2020-06-26 23:37:52 +02:00
jackpoz
49da3533cd Core/Common: Add macro ASSERT_WITH_SIDE_EFFECTS to be used when asserting conditions that have side effects 2020-06-26 23:21:49 +02:00
offl
d526d5d176 DB/Quest: Convert & update support for 'Scratches' to SAI
Closes #24824
2020-06-26 22:40:13 +02:00
offl
f621173748 DB/Quest: Convert Galen's Escape to SAI
Closes #23684
2020-06-26 16:05:08 +02:00
offl
f2c2210dbb DB/Quest: Convert & update support for 'City of Light' to SAI
Closes #24814
2020-06-26 15:49:39 +02:00
jackpoz
3ac1992afb Core/MMAPs: Fix small steps being considered as NAV_AREA_GROUND_STEEP 2020-06-24 22:53:41 +02:00
Rothend
3227ed94bc Script/Creature: script Terokk's encounter (#24871)
* Script/Creature: script Terokk's encounter.

Closes #2029

* Apply suggested changes.

* Fix nopch build.

* Rename 9999_99_99_99_world_terokk.sql to 2020_06_24_02_world.sql

* Update 2020_06_24_02_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-authored-by: Eridium <6587064+Killyana@users.noreply.github.com>
2020-06-24 22:02:44 +02:00
Rothend
e3bac11837 Core/Player: do not consider FLAG_EXTRA_NO_XP_AT_KILL or pet status when deciding if a creature counts as a "gives experience or honor" target. (#24884)
Closes #23860
2020-06-24 21:41:01 +02:00
Rothend
37cb391796 Core/SAI: do not allow the waypoint pause timer to update while in combat. (#24877) 2020-06-24 21:32:21 +02:00
Rothend
5339d1d3b8 Core/SAI: implement SMART_EVENT_SUMMONED_UNIT_DIES (82), useable by creatures and gameobjects (#24874)
* Core/SAI: implement SMART_EVENT_SUMMONED_UNIT_DIES (82), useable by creatures and gameobjects.

Closes #24831

* Update SmartScriptMgr.h
2020-06-24 21:27:34 +02:00
Rothend
5f35bf9e79 Script/Spell: fix Midsummer's Juggling Torch (#24885)
* Script/Spell: fix Midsummer's Juggling Torch.

Closes #17446

* Remove unneeded GetPosition() call, thanks jackpoz for noticing!

* Rename 9999_99_99_99_world_midsummer_torch_juggling.sql to 2020_06_24_01_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-06-24 21:26:01 +02:00
Gildor
9405f78ee4 Core/Spells: SPELL_AURA_PERIODIC_DUMMY should be negative if TargetType is enemy (#24864) 2020-06-24 21:18:10 +02:00
Rothend
50a9c49c88 Core/Spell: fix ammo consumption for Hunter's non-damaging spells. (#24819) 2020-06-24 21:08:39 +02:00
Carbenium
488b91ab83 Core/Battlefield: Move SendInitWorldStatesTo to Battlefield class 2020-06-24 15:09:57 +02:00
Carbenium
c40b897d36 Scripts/Battlefield: Move npc_wg_give_promotion_credit script to BattlefieldWG
The script references BattlefieldWG, which is not exported in dynamic builds.
Move the script, so it is in the same library.
2020-06-24 15:09:57 +02:00
Carbenium
f7faf20254 Battlefields: Move BF scripts out of game
This commit introduces the usual script interface
for battlefields.
2020-06-24 15:09:57 +02:00
Carbenium
7b3d691c0b Entities/WorldObject: Add IsInWorldPvpZone to keep API similar to master 2020-06-24 15:09:57 +02:00
Carbenium
22c12e7123 Core/Misc: Move WorldState enum to SharedDefines
Move WG battlefield world states to the global enum
2020-06-24 15:09:57 +02:00
Carbenium
6a8c12587e Core/Misc: Create new enum for AreaIds
Move Wintergrasp BF related values there
2020-06-24 15:09:57 +02:00
ipriver
a46d047f94 fixed indentation for cmake files 2020-06-24 14:42:02 +02:00
Peter Keresztes Schmidt
b210bb3713 Core/Misc: Replace Trinity::make_unique with std (#24869)
(cherry picked from commit bab5fd87a3)
2020-06-23 18:03:16 +02:00
Shauren
a9f9f737b2 Core/Misc: Properly close database connections when using --update-databases-only arg 2020-06-22 09:53:10 +02:00
Rothend
4caa218641 Core/EscortAI: set maximum distance allowed between player and escortee to default vision range. (#24865) 2020-06-21 21:20:45 +02:00
jackpoz
3778f23c57 Core/LFG: Sanitize LFG roles sent by clients 2020-06-21 20:19:11 +02:00
NoName
51b221c8f8 Script/ScarletEnclave: Eye of acherus now rooted at spawn (#24725) 2020-06-21 12:56:41 +02:00
Gildor
a555bf1fd7 Core/Spells: SPELL_AURA_MOD_HEALING should be negative if TargetType is negative (#24862) 2020-06-21 12:55:29 +02:00
Carbenium
05025d79f3 Fix non-PCH build 2020-06-21 01:28:12 +02:00
ForesterDev
8e0365d8a6 DB/Account: update account_access table (#24788)
* DB/Account: update account_access table:

- rename fields id -> AccountID, gmlevel -> SecurityLevel
- add Comment field
- rename command .acc set gmlevel to .acc set seclevel

* Update auth database

* Fix primary key

* Temporary restore old command account set gmlevel with same handler as account set seclevel

Use Optional  for realmID - if not set, use -1 (for all realms)

* Rename 2020_XX_XX_00_auth.sql to 2020_06_20_00_auth.sql

* Update auth_database.sql

* Rename 2020_XX_XX_00_world.sql to 2020_06_20_06_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-06-20 21:49:18 +02:00
Killyana
75bc0f6771 Script: Remove npc_avatar_of_martyred converted to SAI
Ref 5924e038d6
2020-06-20 20:35:36 +02:00
jackpoz
54e30d4eba Scripts/VioletHold: Limit the number of current summons before the waves start 2020-06-20 14:12:47 +02:00
Giacomo Pozzoni
4e1dbd1cf8 Log number of Creatures and GameObject per map (#24809)
* Shared/Metric: Allow to specify tags in metrics

* Core/Metric: Log number of Creatures and GameObject per map

* Apply feedback

* Codestyle changes

* Codestyle changes

* Remove whitespace

* Update Grafana dashboards to v7.0.3

* Fix missing filter on realm

* Include Creatures and Gameobjects in Maps dashboard

* Show instances with a different color
2020-06-20 00:04:01 +02:00
Gildor
56d60ee00c Core/Spells: Fix Shadowstep (Rogue), remove 4yd forced radius (#24838) 2020-06-19 22:59:43 +02:00
Gildor
7d88891983 Core/Spells: SPELL_AURA_MOD_ATTACK_POWER_PCT should be negative if TargetType or Basepoints are negative (#24837) 2020-06-19 22:58:41 +02:00
Gildor
18692ad20c Core/Unit: SPELL_INTERRUPT_FLAG_ABORT_ON_DMG should only affect player spells (#24836) 2020-06-19 22:56:46 +02:00
ipriver
dc467ee0f6 Additional cmake entry for configs
Closes #24812

Co-authored-by: Carbenium <carbenium@outlook.com>
2020-06-19 15:06:03 +02:00
Ovahlord
c50bb00ac7 Core/Players: do not update position data on character creation
Retail does not have a zone id for newly created character until their first login so we do the same as well. This will drastically improve performance on character creations as we no longer unnecessarily load grids and map data.
2020-06-18 05:23:25 +02:00
Killyana
8b5549c0f1 Creature/Scripts: Remove deprecated scripts
Ref bd609caf09
2020-06-17 23:43:34 +02:00
Giacomo Pozzoni
995a443da2 Handle different slopes in mmaps (#24765)
* Tools/MMAPs: Remove input argument --maxAngle

Remove input argument --maxAngle . This should be just hardcoded in MapBuilder::GetMapSpecificConfig() so all settings are easily found in the same place instead of being spread around.

* Tools/MMAPs: Add new area type NAV_AREA_GROUND_STEEP

Add new area type NAV_AREA_GROUND_STEEP for ground with slope in the range (55, 70] .
NAV_AREA_GROUND is used for ground with range [0, 55] .
NAV_AREA_GROUND_STEEP takes priority over NAV_AREA_GROUND.

* Tools/MMAPs: Fix NAV_GROUND_STEEP flag not being saved in the mmtile

* Core/PathFinding: Implement NAV_GROUND_STEEP flag

Implement NAV_GROUND_STEEP flag, used only by Creatures that are in combat or evading.

* Distinguish between RC_WALKABLE_AREA and NAV_AREA_GROUND.

* Allow mobs in combat to walk on steeps up to 80°

* Allow mobs in combat to walk on steeps up to 85°.
Disable rcFilterLedgeSpans() filter as it removed long steep spans.

* Increase cost of steep spans to try making creatures walk around obstacles instead of walking on them

* Revert last commit
2020-06-17 22:20:26 +02:00
Max Drosdo.www
1e9c84a3ea Worldserver/CLI: console printf fix (#24802)
* Remove extra cli printf call for non-Windows systems

* Codestyle changes

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-06-17 22:14:27 +02:00
Rothend
e7a714f66c Core/SmartAI: allow AreaTrigger SAI scripts to use the player triggering it as base object for actions and targeting (#24817)
* Core/SmartAI: allow AreaTrigger SAI scripts to use the player triggering it as base object for actions and targeting.

Closes #23669
Closes #24791
Closes #24792
Closes #24793

* Apply suggested changes.

* Initialize atPlayer in the constructor

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-06-17 22:06:56 +02:00
Rothend
c4caae9b6d Script/Spell: properly round damage of Seal of Righteousness (on-hit proc). (#24821) 2020-06-17 19:28:05 +02:00
Peter Keresztes Schmidt
418c3b1fd5 game/AI: Convert SelectAggroTarget to enum class (#24818)
* game/AI: Convert SelectAggroTarget to enum class

* game/AI: Rename SelectAggroTarget to SelectTargetMethod
2020-06-16 23:08:56 +02:00
Ovahlord
152ea60116 Core/SAI: implement SMART_ACTION_ATTACK_STOP
Unlike SMART_ACTION_AUTO_ATTACK, this action is actually stopping the entire attack procedure, rather than just hack-disabling auto-attacks. Keep in mind that this action requires a passive react state to prevent a immediate AttackStart ai reaction
2020-06-14 22:51:42 +02:00
offl
a117450ce9 DB/Instance: Convert some Uldaman scripts to DB
Closes #24744
2020-06-14 19:16:55 +02:00
offl
8bccb258ba DB/Quest: Convert & update support for 'All Along the Watchtowers' to SAI
Closes #24732
2020-06-14 18:26:35 +02:00