Commit Graph

108 Commits

Author SHA1 Message Date
ratkosrb 9ebe5018ce Don't cut off floating point part when calculting points per level. 2021-04-06 03:16:03 +03:00
WobLight 990297a252 Implement dithering of fractional values (#1100) 2021-04-04 00:09:22 +03:00
ratkosrb f7cda6eef4 Add update fields for all versions. 2021-04-02 06:28:35 +03:00
ratkosrb af745365e9 Don't use bounding radius for aggro distance checks. 2021-04-01 23:44:56 +03:00
ratkosrb 5d7a7a0799 Add batching for procs and delay most spell effects. (#1090) 2021-03-31 19:49:06 +03:00
ratkosrb 2d1f7d20d4 Refactor GetNearPoint to allow using specified position. 2021-03-19 12:29:04 +02:00
ratkosrb b5111a3ca4 Fix issues with The Great Masquerade. 2021-02-28 19:39:33 +02:00
ratkosrb 65fb1503b9 Revert "Consider M2 object LoS for proximity aggro checks."
This reverts commit d0d58455d4.

It's not blizzlike: https://streamable.com/exrvc5
2021-02-24 18:09:10 +02:00
WobLight 03a2e108ba Replace use of ACE threads (#25) 2021-02-21 14:25:25 +02:00
ratkosrb d26eafc377 Fix quest Screecher Spirits.
Closes https://github.com/vmangos/core/issues/1063
2021-02-19 13:48:27 +02:00
ratkosrb c82d2f41dc Allow damage shields to benefit from damage done bonuses.
This allows Flame Wrath to scale with spell power.

https://www.youtube.com/watch?v=xhm2L0-ADdc
2021-02-03 07:22:09 +02:00
ratkosrb a927e5b7f3 Refactor valid attack target checks. 2021-01-24 22:47:36 +02:00
ratkosrb 8d806cf7bd New script for Princess Theradras.
Closes https://github.com/vmangos/core/pull/978
2021-01-24 04:58:32 +02:00
ratkosrb d0d58455d4 Consider M2 object LoS for proximity aggro checks.
Closes https://github.com/vmangos/core/issues/499
2021-01-23 17:37:49 +02:00
ratkosrb 8a9aa7501b Make sure leeway is applied to mob too when attacking moving player. 2021-01-19 17:56:58 +02:00
ratkosrb 57d15342b3 Flip HasInArc parameters to enable arc to be default parameter.
Credits to cmangos https://github.com/cmangos/mangos-classic/commit/7438b4f6b3f78376d05eabff37fdac3e0446ad68
2021-01-15 17:01:26 +02:00
ratkosrb 06bf943220 Rename CalculateSpellDamage to CalculateSpellEffectValue.
https://github.com/cmangos/mangos-classic/commit/c029eaa88b23d93d6ac4567e61080779fb2bde39
2021-01-13 11:51:12 +02:00
ratkosrb 81fea8732d Send melee attack target in update object packet.
Credits to killerwife. Fixes missing melee animation bug with summoned creatures that aggro immediately.
2020-12-12 21:29:03 +02:00
ratkosrb e085523ad0 Implement proper gameobject interaction distance checks.
Credits to cmangos.
2020-11-12 18:41:45 +02:00
ratkosrb 85ac585662 Redesign creature addon table. 2020-11-08 02:45:00 +02:00
ratkosrb 91134917bf Rename unit byte flags and add offsets enum. 2020-11-07 15:22:38 +02:00
ratkosrb e2e2b85710 Rework item flag handling prior to 1.7. 2020-10-24 19:21:50 +03:00
ratkosrb 93d94f1b55 Port new cooldown system from cmangos.
Credits to cmangos https://github.com/cmangos/mangos-classic/commit/4777db3075aea6f36e46d686031e8da8669674e5
2020-09-29 21:13:22 +03:00
ratkosrb a6abdfa4ae Prevent players without a shield from blocking. 2020-07-06 20:00:16 +03:00
ratkosrb 590187892e Fix travis build. 2020-06-07 15:13:16 +03:00
ratkosrb 7e2b4bf6f0 Reduce size of WorldObject. 2020-06-07 14:51:10 +03:00
ratkosrb 54ad651f01 Correct usage of CreateObject2.
Credits to cmangos and trinity.

https://github.com/cmangos/mangos-classic/commit/dc8b867078c6a3cffe226fc6885377ed111a52f2

https://github.com/TrinityCore/TrinityCore/commit/fb1d568fbaedb2198ee6a39aac669533d8924c82
2020-05-28 18:50:38 +03:00
ratkosrb dc91bbfab5 Add spell bonus coefficients from classic. 2020-05-16 03:21:18 +03:00
Kittnz 85ac39fd54 Implement battleground bots (#413)
Also includes a rewrite of the party bots.

Co-authored-by: ratkosrb <ratkomladic2@abv.bg>
Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2020-04-16 07:03:24 +03:00
ratkosrb 573057a9c4 Add commands to unlearn recipes and gm spells. 2020-04-10 13:03:05 +03:00
ratkosrb 8ed340bb98 Fix transport progress pre 1.9.
Huge thanks to Hiperzone!
2020-04-07 02:41:01 +03:00
ratkosrb c34220c318 Show real health when using Beast Lore.
Closes https://github.com/vmangos/core/issues/418
2020-03-27 02:17:05 +02:00
ratkosrb 99d11c2602 Optimize movement checking code. (#429)
- Avoid using virtual functions.
- Use "do {} while(false)" instead of lambda in ACK opcode handlers.
2020-03-23 19:38:59 +02:00
ratkosrb d0ae957483 Implement party bots. (#405)
* Implement party bots.

* Fix bg queue and other stuff.

* Remove not intended change.

* Implement resurrecting and interrupting.

* More appropriate word.

* Add buffing and mounting.

* Add pet summoning.

* Prevent adding bot to full instance.

* Add loot support and improve ranged bots.
2020-03-15 19:04:42 +02:00
ratkosrb 26addb5243 Rework of the New Year's Eve and Fireworks events. (#398) 2020-03-05 19:05:22 +02:00
ratkosrb b868fef01d Add knockback chat command and other misc changes. 2020-02-22 15:07:02 +02:00
ratkosrb 894b0fc267 Fix compilation of old builds. 2020-02-18 20:57:33 +02:00
ratkosrb a683100fcc Update gameobject template data. (#370) 2020-02-16 18:40:12 +02:00
ratkosrb 4a4f5692cc Remove MANGOS_DLL_DECL and its use.
Credit to cmangos https://github.com/cmangos/mangos-classic/commit/61837298b7ba4bd81fdfbda3d7456d10f296e7cd
2020-02-10 22:17:36 +02:00
Kittnz dbe7c59332 Core/Objects: increase sight range of all objects & correct general default visibility distance (#283)
Some info on range
https://trinitycore.atlassian.net/wiki/spaces/tc/pages/74950924/Lua+Scene+Script+Documentation#LuaSceneScriptDocumentation-ActorAOIRange

Port from: https://github.com/TrinityCore/TrinityCore/commit/83e6fde0664cf8ab0c425e574781262893e7b226

Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2020-02-10 21:43:55 +02:00
ratkosrb 5b59d2f583 Implement premade character templates. (#346)
* Implement premade character templates.

* Separate gear and spec templates.

* Auto unequip previous gear.

* Add healer specs and gear.

* Add tank specs and gear.

* Add custom npc scripts.
2020-01-15 22:32:54 +02:00
ratkosrb 61a3374bfd Send hit and immunity results for damage shields and periodic auras.
Closes https://github.com/vmangos/core/issues/339

Credit to cmangos https://github.com/cmangos/mangos-classic/commit/f21797934594a4745b21730751662038fdd4c077
2020-01-08 20:14:55 +02:00
ratkosrb 3777677618 Reorder and unify the config's stat modifier handling.
Credit to cmangos https://github.com/cmangos/mangos-classic/commit/3866f932818cf99e9724f749ad2dcee6c701b71f
2019-12-30 10:17:49 +02:00
ratkosrb e806acc769 Apply clang tidy fixes. (#330) 2019-12-24 06:23:40 +02:00
ratkosrb 49b9a82244 Switch to east const style. 2019-12-21 00:45:35 +02:00
ratkosrb 221145d46e Misc code style cleanup. 2019-12-20 07:18:54 +02:00
ratkosrb 9cccb4fbed Correct level for guardians and increase max player level limit.
https://github.com/cmangos/mangos-classic/commit/437bc3f240849514bc3fabc86be668bf9d991dce
2019-12-17 18:57:02 +02:00
ratkosrb a5c746a5c3 Remove custom Lord Victor Nefarius entry. 2019-12-10 19:06:57 +02:00
ratkosrb a1f9716ffa Add a cheat command category. 2019-12-09 19:37:21 +02:00
ratkosrb 49720c1413 Add minimum distance for auto attack facing check. 2019-11-26 18:30:52 +02:00