Commit Graph

180 Commits

Author SHA1 Message Date
ratkosrb 2c4e054e94 Implement some GM spells. 2019-05-03 00:03:19 +03:00
ratkosrb 536121f356 Ignore non-applicable weapons when checking item requirements.
Credit to bladez https://github.com/lh-server/core/commit/9753ea870f7caf6922d66ad56dec8c739cbb2be5
2019-04-30 18:11:00 +03:00
ratkosrb aa4d41ddb9 Fix AoE spells not affecting FFA targets. 2019-04-25 21:00:33 +03:00
ratkosrb 3c5639c455 Define some item flags.
Credit to TrinitCore.
2019-04-22 21:25:31 +03:00
ratkosrb 7e44def40a Fix Berserking racial before 1.9. 2019-04-06 16:57:22 +03:00
ratkosrb 3d3678a071 Progression fixes for 1.8 and 1.9. 2019-03-28 20:01:03 +02:00
ratkosrb 5f2f930644 Unsummon old pet upon trying to summon another.
This is how it worked according to blizzard community managers.
2019-03-13 18:45:33 +02:00
ratkosrb e08c7d05fc Fix startup errors with 1.8.4 client. 2019-02-16 21:55:12 +02:00
ratkosrb f7cd03b5d9 Initial support for 1.8.4 client. 2019-02-11 20:40:19 +02:00
ratkosrb 38ee129a85 Convert pre-1.10 spell proc flags to newer equivalent. 2019-01-26 18:52:58 +02:00
ratkosrb 78213d012e Fix possible crash with some auras.
Thanks to @coolzoom.
2019-01-18 03:11:50 +02:00
ratkosrb 29994ebf96 Fix typo. 2019-01-12 22:04:23 +02:00
ratkosrb 5a2776dac3 Check m_CastItem for item casts rather than m_IsCastByItem.
Credit to bladez https://github.com/lh-server/core/commit/d32371387eda3bcf457d86b71815637b6eae64d1
2019-01-12 21:10:50 +02:00
ratkosrb 9998f2de90 Add separate handler for SPELL_EFFECT_SUMMON_POSSESSED.
This fixes the eye of killrog + mind control crash without hacks.
2019-01-02 18:27:18 +02:00
ratkosrb 15d27dbb5c Fix SPELL_ATTR_EX_NOT_BREAK_STEALTH on old clients.
Stealth auras used to have AURA_INTERRUPT_FLAG_ON_CAST_SPELL too.
2018-12-23 05:57:16 +02:00
ratkosrb 8da06d8a3f Stealth auras were removed at end of cast prior to 1.10. 2018-12-22 12:12:33 +02:00
ratkosrb 395d47d15f Organize code in Player.h 2018-12-02 19:19:04 +02:00
ratkosrb 6735de0174 Improvements to PvP flagging.
Based on https://github.com/cmangos/mangos-classic/commit/d63bebd45742b75bc6f0b02206263a8f16182fec
2018-11-27 12:36:52 +02:00
ratkosrb f577dd8900 Trigger mainhand weapon procs for shield attacks.
2.0.1 Patch Notes quite: Warrior Shield Slam and Shield Bash will no longer trigger a proc from an equipped weapon.

http://wowwiki.wikia.com/wiki/Patch_2.0.1
2018-11-23 05:34:08 +02:00
ratkosrb c2fee99d03 Fix spell error codes on 1.9. 2018-11-22 05:19:43 +02:00
ratkosrb ba3268a699 Fix Challenge to Urok. 2018-11-07 16:37:10 +02:00
ratkosrb 3539591698 Fix script issues with 2 mobs. 2018-11-04 15:14:51 +02:00
ratkosrb 2ff34d4dfc Prevent creatures from Blinking to unreachable places. 2018-11-04 13:36:18 +02:00
ratkosrb dba0602dc1 Add some documentation from cmangos.
https://github.com/cmangos/mangos-classic/commit/d743e8ba12339653b324aa22687d242ba48aa991
2018-10-14 19:03:00 +03:00
ratkosrb 3c23f9a21b Make creatures face their cast target. 2018-10-06 14:37:56 +03:00
ratkosrb 76f49163c9 Database script for Witch Doctor Zum'rah
Also reimplemented EffectActivateObject based on the info here https://github.com/TrinityCore/TrinityCore/issues/21078
2018-10-05 16:52:57 +03:00
ratkosrb fe73c01764 Potions were usable even at full HP or Mana before 1.11. 2018-09-21 21:38:33 +03:00
ratkosrb fa87f9bf4b Add internal spell flags for better performance. 2018-09-17 00:43:09 +03:00
ratkosrb 79c79bd1ac Fix proc of Zandalarian Hero Charm. 2018-09-16 22:33:17 +03:00
ratkosrb 687311fec7 Tabs to spaces. 2018-09-13 21:58:11 +03:00
ratkosrb e99ceefbe6 Force updates on inactive maps if there are corpses to be removed.
Credit to LH.
2018-09-13 21:21:59 +03:00
Nølin b608967a7e Stoneform should be able to cast when disoriented, stunned, etc (#4)
* Stoneform should be able to cast when disoriented, stunned, etc

* Tabs
2018-08-31 06:05:55 +03:00
ratkosrb 747855464e Fix spawn position of Scourge Banner.
In this case the object should not be spawned on top of the caster, but in a close random point - https://www.youtube.com/watch?v=_9jV2sj97m4
2018-08-29 09:43:05 +03:00
ratkosrb 58e83ed56b Check DB for required area Id when sending spell cast result. 2018-08-28 03:04:29 +03:00
ratkosrb 716da74d7d Support for client build 1.10.2 (#213)
After this commit you have to move your DBCs inside a folder with the build number. So for example if they were in "data\dbc\" before, now they should be in "data\5875\dbc\" for 1.12.
2018-08-26 08:51:57 +03:00
ratkosrb ee699270f8 Correct spell range check again.
Turns out it is combat reach and not bounding radius after all.
2018-08-06 17:41:34 +03:00
ratkosrb 0dbd2848e7 Implement unused spell attributes. (#200)
* Implement SPELL_ATTR_EX4_REAL_TIME_DURATION.

* Implement SPELL_ATTR_EX_MELEE_COMBAT_START for pets.

* Pick Pocket not usable on target in combat before 1.12.

* No AP contribution to some spells prior to 1.12.
2018-08-05 14:00:40 +03:00
ratkosrb 019c20128d Misc database fixes. (#199)
* Misc fixes.

* A few more fixes.

* Make Private Hendel active object.
2018-08-05 13:59:49 +03:00
ratkosrb 14eba4a2ca Implement GuardEventAI and add scripts for guards. (#196)
* Add command to apply aura.

* Add condition for no path to victim.

* Add Is Player condition.

* Database scripts and fixes.

* Improve GuardAI.

* Implement GuardEventAI.

* Mark faction as At War in client on aggro.

* Fix instance reset message.

* Reimplement invisability for Shade of Jindo.

* Cleanup ancient methods.

* Sync At War flag.

* Fix aura for Drunken Bruiser.

* Add LoS check.
2018-08-05 13:58:32 +03:00
Filip Jaroš 54127528ce Fix mana leech aoe spells (#195)
* Fix mana leech aoe spells

* Change to check only index effect
2018-08-05 13:57:15 +03:00
ratkosrb 1ef307dc3d Fix combat distance calculation. (#176)
* Fix distance calculation.

* Don't apply 5 yard leeway to creatures.

* Allow 1 yard give for creatures.
2018-07-25 02:02:19 +03:00
GuybrushGit c6423f5bec Fix absorbed Ignite damage (#135)
* Fix absorbed Ignite damage

* Fix absorbed Ignite damage
2018-06-17 12:58:34 +10:00
ratkosrb d4fdfebce7 Misc database and spell fixes. (#134)
* Add min target level field for spells.

* Fix casting while crowd controlled.

* Misc database fixes.

* Learn riding skill for Warlocks and Paladins in 1.12.

* Move instance statistics table to logs db.

* Marduk Blackpool gossip menu id.
2018-06-15 22:11:15 +03:00
ratkosrb b4cb047c0e New database release. (#123)
* Use build to load spells and factions.

* Remove old migrations.

* Some 1.11 issues.

* Use unique pointers to spell entries.
2018-06-08 18:50:24 +03:00
ratkosrb 96ec451406 In Dreams: Full Quest Implementation (#121)
Scripted entirely in the database now.
2018-06-08 06:12:09 +03:00
ratkosrb adaf27ba68 Support for client build 1.11.2 (#112)
* Add support for the 1.11.2 client.

* Fix some startup errors.

* Fix all startup errors with 1.11 dbcs.

* Fix SpellCastResult enum values.

* Implement old spell haste handling.

* Fix spell haste logic for 1.12.

* Lethargy Root is grey in 1.12.
2018-06-01 04:34:00 +03:00
bladez 2d87e5ff52 Refactor SpellNotifierCreatureAndPlayer to remove unnecessary iter dereferences and casts (#94) 2018-05-23 19:11:41 +10:00
GuybrushGit b4d12a0c3b Followup to pet autocast (#63)
* Followup to pet autocast

* Followup to pet autocast
2018-05-02 18:57:01 +10:00
ratkosrb 71e02b2fe8 Move caster mobs to Creature Spells and fix any script issues. (#21)
Move close to 600 ranged mobs to creature_spells system.
2018-04-16 15:35:51 +03:00
GuybrushGit 341a675830 Add leeway range to spells (#19) 2018-03-22 18:57:27 +11:00