Commit Graph

23379 Commits

Author SHA1 Message Date
Lucas Nascimento
fa3a62ae4e Entities/Unit: Fixed wrong combat stop when remove charm (#27038) 2021-10-17 17:02:38 -03:00
offl
9e78329c8b Core/SAI: Make SMART_EVENT_WAYPOINT_START & SMART_EVENT_CHARMED_TARGET deprecated
Deprecated events and actions will be removed after 2 weeks
2021-10-14 23:30:41 +03:00
offl
1053345692 DB/SAI: Make SMART_EVENT_EVENT_PHASE_CHANGE deprecated; avoid AddAura, re-handle equipment in few scripts
Deprecated events and actions will be removed after 2 weeks

Ref 1d1e090fe9 0e1835ee78
2021-10-14 21:10:30 +03:00
Shauren
8693ee5695 Core/Conditions: Fixed conditions not working for area auras 2021-10-14 11:54:33 +02:00
Jinnaix
7051aab421 Core/Creature: Formation reset (#27040)
* Core/Creature: Formation reset

* Update CreatureGroups.cpp

whoops

* Core/Creature: Formation reset
Keep dismiss functionality
2021-10-13 17:20:29 +02:00
offl
887605d945 Core/SAI: Remove deprecated events and actions (#27039) 2021-10-11 19:26:19 +03:00
Lucas Nascimento
63c6f7bc26 Core/Unit: Fixed Deterrence stopping working for no reason (#26996) 2021-10-10 12:39:38 -03:00
Lucas Nascimento
708db54673 Scripts/Spells: Fixed Life Tap (#27003) 2021-10-09 10:16:55 -03:00
Malcrom
83ae8fc519 Script/World: Brewfest Reveler Script (#27031) 2021-10-08 18:32:31 +02:00
offl
a88001938e Core/Creature: Disallow nearly all non-static flags on DB side (#27024)
Closes #25764
2021-10-07 16:06:08 +03:00
offl
4441d42253 Scripts/Spells: Handle quest tame spells in spell script (#27022) 2021-10-07 16:03:38 +03:00
Aokromes
e8c005df3d Scripts/Misc: Remove again LANG_ADDITEM 2021-10-06 15:58:07 +02:00
Giacomo Pozzoni
e3591b25a5 Scripts/Commands: account onlinelist (#27004)
* Script/Commands: Remove sync db queries from ".account onlinelist"

* Add additional "account onlinelist" commands

- "account onlinelist ip" to filter by ip address
- "account onlinelist limit" to limit the output rows
- "account onlinelist map" to filter by map id
- "account onlinelist zone" to filter by zone id

* Update src/server/scripts/Commands/cs_account.cpp
2021-10-06 11:32:37 +02:00
Giacomo Pozzoni
bebf1876ab Script/Commands: Allow to specify the target player in .additem command (#26997)
* Script/Commands: Allow to specify the target player in .additem command

New syntax: .additem <required item id> <optional item count> <optional player name>
Close #25875

* Move target player to new command ".additem to <player> <item> <count>"
2021-10-06 11:32:07 +02:00
Shauren
ec4a3cd9ac Core/Conditions: Reserve CONDITION_SOURCE_TYPE_AREATRIGGER for master branch 2021-10-06 11:12:52 +02:00
Shauren
c029f21f34 Core/Misc: Fix appleclang 12 warnings
(cherry picked from commit 3bf6698116)

# Conflicts:
#	src/server/game/Handlers/BlackMarketHandler.cpp
#	src/server/game/Loot/LootItemStorage.cpp
#	src/server/scripts/Northrend/Nexus/Oculus/boss_urom.cpp
#	src/server/shared/DataStores/DB2DatabaseLoader.cpp
2021-10-06 10:34:20 +02:00
Aokromes
a462daa01c Scripts/Misc: Remove 2 logs, they are handled by gm logs 2021-10-05 15:52:33 +02:00
Giacomo Pozzoni
1c1c38ae97 Skip proccing Sheath of Light when at full health (#26987) 2021-10-02 16:33:38 +02:00
trickerer
084f8f3ded Core/Combat Improve extra attacks handling (#26859)
* Core/Combat Improve extra attacks handling

* Remove unnecessary _lastDamagedTargetGuid check

* Add missing initialization of _lastExtraAttackSpell. Do not use hardcoded spell ids.

* Partially revert 9f90b83501
2021-10-01 16:40:20 +02:00
Ovah
e317beb449 Core/Units: removed an incorrect addition of SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER crit chance benefits (#26873)
This aura, as the name implies, should only affect the spells that it has listed in its class mask. Because the removed code was not doing so, it applied the crit chance on ALL melee and ranged spells. This fixes Stormstrike unintentionally increasing the crit chance for all melee attacks instead of the affected spells only
2021-10-01 16:38:29 +02:00
Maks Szokalski
b1e7f2489c Flash worldserver on taskbar on thread start (#26886)
* Flush worldserver on taskbar on thread start

* update

* update

* fix codestyle

* Update worldserver.conf.dist

* Update src/server/worldserver/worldserver.conf.dist

Co-authored-by: NoName <322016+Faq@users.noreply.github.com>

Co-authored-by: NoName <322016+Faq@users.noreply.github.com>
2021-10-01 16:37:39 +02:00
Mikhail Redko
3cef126d0a Core/Misc: Improvement item durability repair logic. (#26911)
* Core/Misc: Improvement item durability repair logic.

* Move item repair cost calculation logic from Player::DurabilityRepair to Item::CalculateDurabilityRepairCost
* Make item repair cost calculation more congruent with client logic (std::round)
* Do not repair items if player does not have enough money to pay for the repair of all items at once
* Withdrawing money from guild bank only once to avoid spam in the guild bank log and reduce number of transactions in the database

Closes #25937

* Fix build

* Remove unnecessary scope

* Fix visual studio warning and one more check for reliability
2021-10-01 16:33:21 +02:00
HelloKitty
82aca86d87 Core/AH: Add search delay to SMSG_AUCTION_BIDDER_LIST_RESULT and SMSG_AUCTION_OWNER_LIST_RESULT (#26915) 2021-10-01 16:32:36 +02:00
Keader
bddf41e718 Scripts/ICC: Implemented spell Dark Reckoning
Closes #26941
2021-09-28 21:48:46 -03:00
robinsch
f30510566b Core/Spell: Allow inserting spell ids greater than 65535 into spell_learn_spell (#26958) 2021-09-28 11:46:34 +02:00
offl
0a2fca1aed Core/SAI: Split set/remove unit_flags actions (#26954) 2021-09-27 19:00:55 +03:00
offl
5f71c40b96 Scripts/Spells: Mount check aura for Gryphon Hatchling & Wind Rider Cub (#26897)
Closes #26600
2021-09-27 00:41:25 +03:00
Shauren
56e29a0bde Core/RaF: Allow granting levels to other faction when CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP is enabled 2021-09-24 22:54:32 +02:00
offl
f89bb43419 Core/Misc: Link CREATURE_FLAG_EXTRA_INSTANCE_BIND to corresponding static flag 2021-09-22 18:06:31 +03:00
Shauren
4ec52fb160 Core/Authserver: Fix uninitialized variable, fixes changing realms after logging in to world 2021-09-20 22:03:21 +02:00
offl
c8061d8ba6 Core/SAI: Remove possibility to set/remove unit_flags2
So far I see that only Cannot Turn flag can be changed by scripts and action to change it didn't existed in 3xx. If someone will need to change that flag, it should be implemented by action which will change only that flag and not any flag of that type.
2021-09-19 02:15:09 +03:00
offl
8a70efed8c Core/Misc: Leave detailed description for UNIT_FLAG_NON_ATTACKABLE 2021-09-18 03:26:53 +03:00
offl
b4bb2bc0c5 Core/Misc: Update comments of static flags 2021-09-18 01:54:07 +03:00
Shauren
2d8d118c43 Tools/Mapextractor: Remove reading MWMO from mapextractor
Ref #26537
2021-09-17 15:31:59 +02:00
offl
f381e18244 Core/Misc: Update enums of static flags 2021-09-17 04:45:57 +03:00
offl
4b028e599e Core/Misc: Rename few type flags 2021-09-16 22:10:46 +03:00
offl
8047532605 Core/Misc: Name unknown CreatureEliteType 2021-09-16 21:48:19 +03:00
offl
4e291caff8 Core/Misc: Rename UNIT_FLAG_PVP to UNIT_FLAG_PVP_ENABLING
Ref #26912
2021-09-16 21:21:25 +03:00
offl
e4a82ee97a Core/Misc: Rename UNIT_FLAG_SWIMMING to UNIT_FLAG_CAN_SWIM
Ref #26912
2021-09-16 21:15:52 +03:00
offl
a50ce8755b Core/Misc: Rename UNIT_FLAG_TAXI_FLIGHT to UNIT_FLAG_ON_TAXI
Ref #26912
2021-09-16 04:43:06 +03:00
offl
1a9b914ac0 Core/Creature: Add first 4 enums of static flags (#26914) 2021-09-16 04:27:02 +03:00
offl
c4741a131a Core/Misc: Rename UNIT_FLAG_NOT_SELECTABLE to UNIT_FLAG_UNINTERACTIBLE (#26913) 2021-09-15 01:04:03 +03:00
offl
b2fffe674d Scripts/Misc: Remove useless comments & Varos' Centrifuge Shield adjustments 2021-09-14 22:18:30 +03:00
stoneharry
a18b19aece Core/Spells: Implement SPELL_ATTR7_BYPASS_NO_RESURRECT_AURA (#26901)
When this aura is given on a spell, it allows for it to bypass 314 SPELL_AURA_PREVENT_RESURRECTION.
2021-09-12 17:13:44 +02:00
Mikhail Redko
5286ecfca8 Scripts/Spells: Wandering Plague should ignore targets under breakabl… (#26889)
* Scripts/Spells: Wandering Plague should ignore targets under breakable by damage crowd control effects.
Closes TrinityCore#26162
2021-09-11 17:46:16 -03:00
offl
70c3e58327 Scripts/Creature: Update Dancing Flames (#26883) 2021-09-09 23:54:27 +03:00
offl
ff8ddbfd53 Scripts/Spells: Script for 'Injured' (22269) (#26882) 2021-09-09 23:54:05 +03:00
Shauren
8d034b2502 Core/Spells: Typo fix 2021-09-07 11:37:55 +02:00
Shauren
325bdc0ab0 Core/Spells: Remove remaining direct accesses to SpellInfo::Effects 2021-09-04 14:21:02 +02:00
offl
0e12e23f77 DB/Creature: Remove remaining non-static flags from DB, finally (#26884) 2021-09-04 02:13:45 +03:00