Commit Graph

90 Commits

Author SHA1 Message Date
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
ratkosrb 66659fe13f Cleanup and reorganization of Unit and SpellEntry headers. (#312)
* Move some unit and spell defines to dedicated header.

* Reorder functions in unit header.

* Clean up until spell category.

* Finish cleaning up spell functions.

* Cleanup combat system methods.

* Done cleaning up unit header.

* Reduce not needed includes.
2019-11-24 22:20:44 +02:00
ratkosrb df76eff1d3 Fix a ton of warnings found using clang. (#308) 2019-11-20 20:27:36 +02:00
ratkosrb 4afe949345 Replace usage of NULL with nullptr. 2019-11-12 19:53:42 +02:00
ratkosrb 0fee5f6863 Dustwallow Marsh: Full Revamp of Zone (#293)
* Correct Dustwallow Marsh spawns.

* Implement multiple creature ids per spawn.

* Convert pools to new system.

* Add Theramore waypoints and scripts.

* Add missing gameobject spawns.

* Add command to add creature entry to spawn.

* Fix creature id sorting.
2019-11-02 22:09:58 +02:00
ratkosrb 428aa18976 Implement gameobject spell casting (#271)
* Some initial work.

* More work.

* Just a few more errors fixed.

* More progress.

* Fixed all errors in main spell code.

* It compiles!

* Change order of function declarations.

* Fix healing effects.

* Remove empty lines.

* Try to fix travis build.

* Fix old version of Slice and Dice.

* Headers cleanup.

* Move gameobjects list back to unit class.
2019-09-18 23:40:41 +03:00
ratkosrb e8b2ba9037 Fix movespline structure on 1.7 client.
Thanks to namreeb for helping confirm this.
2019-07-30 23:48:46 +03:00
ratkosrb 88d2fe4099 Initial support for 1.7.1 client. 2019-07-15 18:13:45 +03:00
ratkosrb b6f4a2574b Implement movement counters (#197)
* Implement movement counters.

* Fix 1.8.4 build.

* Remove redundant check

* Minor changes.

* Fix problem with fear while mind controlling rooted unit.

* Fix wrong guid being sent in speed change.

* Move some functions around.

* Differentiate between possess and charm.

* Hack fix for mind control bug in 1.8.4.

* Fix bug with Mind Vision.

* Use namespace instead of class.
2019-06-12 18:29:21 +03:00
ratkosrb 4c4475bbf4 Rename find nearby object functions. 2019-04-28 21:09:27 +03:00
ratkosrb f2f3a170e5 Fix mind control on old clients. 2019-03-23 23:33:50 +02:00
ratkosrb dd8f591dd9 Change default command ranks. 2019-02-23 14:08:50 +02:00
ratkosrb f7cd03b5d9 Initial support for 1.8.4 client. 2019-02-11 20:40:19 +02:00
ratkosrb cf6e4f1292 Use percent hp and mana in creature spawns table. 2019-01-24 08:46:01 +02:00
ratkosrb 59f151f0f1 Use static cast in IsPet and ToPet. 2019-01-12 03:03:58 +02:00
ratkosrb d2c7a65f21 Chat system refactoring.
Based on https://github.com/cmangos/mangos-classic/commit/1e20ad209d5dfff78b7f31baf2ed987dcc570079
2018-12-26 13:17:35 +02:00
ratkosrb 395d47d15f Organize code in Player.h 2018-12-02 19:19:04 +02:00
ratkosrb 8688d60bd5 Add const to text or packet sending functions.
Based on https://github.com/cmangos/mangos-classic/commit/287f76d315f40d639985332113675d37631dbef8
2018-11-25 10:55:08 +02:00
ratkosrb d47c7094c1 Fix use of different range checks for some spells. 2018-10-26 03:56:49 +03:00