Commit Graph

167 Commits

Author SHA1 Message Date
ratkosrb 6146d549e3 Rework player race scale handling. 2022-01-11 12:54:32 +02:00
ratkosrb fda9c0fb37 Add patch to game_event_creature_data table.
Closes https://github.com/vmangos/core/issues/1429
2022-01-02 19:50:40 +02:00
ratkosrb 63d6db75fe Do not call for assistance if call for help is disabled. 2021-12-20 16:24:44 +02:00
ratkosrb 797d40498a Define all faction flags and rework call for help checks. 2021-12-20 15:22:32 +02:00
ratkosrb 870b626235 Cleanup double semicolons. 2021-12-12 11:23:59 +02:00
ratkosrb 94ec0ca561 Small changes to last commit. 2021-12-11 01:14:02 +02:00
ratkosrb 2c83139467 Refactor creature proximity aggro related code.
- Units immune to NPCs can no longer attack NPCs.

- Units immune to PCs can no longer attack PCs.

- Civilians can call guards when attacked by creatures too.

- If you go near a creature your party members are attacking, you will enter combat too.
2021-12-11 00:54:18 +02:00
ratkosrb 04230ef676 New scripts for Well of Corruption and Corrupted Sabers. 2021-12-07 09:43:17 +02:00
ratkosrb 792c3733c1 Implement spawn spells. 2021-12-01 00:39:34 +02:00
ratkosrb 95db1b640c Add forced cooldown on using instant spells during mind control. 2021-08-23 18:42:01 +03:00
ratkosrb 24bc69fa74 Make sure creature equipment is reset when changing entry.
Fixes Arko'Narin keeping her sword after respawn.
2021-08-21 11:05:41 +03:00
ratkosrb ac0b049446 Fix talents that reduce cooldowns of pet spells.
Credit to cmangos.
2021-07-14 16:36:41 +03:00
ratkosrb 9715f1c624 Prevent assisting againt player outside of visibility range. 2021-06-22 14:18:32 +03:00
ratkosrb 808ec98018 Implement targeted emotes. 2021-06-21 15:47:21 +03:00
ratkosrb 45836c24bb Correct stats of Living Flame and fix auras and regen of creature guardians. 2021-06-07 04:04:44 +03:00
Warlockbugs fb91e33eb9 Revamp of mirror timers and environmental APIs
https://github.com/cmangos/mangos-classic/commit/bf00a047bed5fdf736f3308a1d8b2947ac11a3c3
2021-06-02 09:46:49 +03:00
ratkosrb dbfb07270c Make sure mobs attacked by Guardian Pet are tagged for owner. 2021-05-22 02:12:53 +03:00
ratkosrb d54dbd66c2 Cleanup header dependencies. 2021-04-12 14:34:00 +03:00
ratkosrb af745365e9 Don't use bounding radius for aggro distance checks. 2021-04-01 23:44:56 +03:00
ratkosrb 68883ad2e3 Fix some evade issues with creature groups. 2021-03-16 12:14:48 +02:00
ratkosrb 8d0af8df80 Change default creature threat radius to 50 yards. 2021-02-28 04:33:23 +02:00
ratkosrb 183203611d Refresh leash timer periodically while under crowd control. 2021-02-28 03:02:32 +02:00
ratkosrb 286efa09dd Send zone under attack alert when any pvp flagged mob is killed. 2021-02-16 23:22:12 +02:00
ratkosrb 3e1592e0e0 Prevent Archmage Arugal from evading when target is unreachable. 2021-02-16 22:34:18 +02:00
ratkosrb 4b0248fba9 Send area id in zone under attack packet. 2021-02-16 22:09:28 +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 b877e5c998 Consider pets to be in evade mode if their owner is evading. 2021-01-23 01:20:46 +02:00
ratkosrb f7e05b063c Add event when Ursal the Mauler dies. 2021-01-22 20:45:59 +02:00
ratkosrb 3666b1d85b Make sure creature pets use same leash timer as their master. 2021-01-19 15:27:09 +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 c21b3a16c3 Make Naxxramas Culists and Acolytes stop casting if target is immune. 2021-01-12 18:18:17 +02:00
ratkosrb 7caca4261d Improve comments in ChooseDisplayId. 2021-01-10 21:19:05 +02:00
ratkosrb 7d2f1e2923 Rework creature leashing logic to match classic.
- If you pull 1 mob among a group of others with a single target spell, it's leash timer should become linked with those who answer its initial call for assistance.

- Pulling a whole group of mobs at the same time using an AoE spell should not cause the mobs to become linked.

A mob aggroing another later on through its periodic call for help should not cause mobs to become linked.

A negative spell hit or melee attack on the mob should reset it's leash timer.

If a mob using chase movement does not need to move for around 5 second, it's leash timer should reset.

Closes https://github.com/vmangos/core/issues/793
2021-01-08 23:08:48 +02:00
ratkosrb 7dac563fc2 Replace IsWithinMeleeRange with more accurate check.
Closes https://github.com/vmangos/core/issues/914
2021-01-01 03:30:01 +02:00
ratkosrb 57c33e78df Add cast flag to only cast spell if target is casting. 2020-12-16 18:29:53 +02:00
ratkosrb 238e6a6bcf Reset leader on temporary leader leaving. 2020-12-10 14:19:03 +02:00
ratkosrb 35f3eb2281 Pick new creature group leader on death of old leader.
Allows groups with formation movement to continue waypoints like on classic.
2020-12-10 01:23:17 +02:00
ratkosrb 951401b79e Implement RANGED_ATTACK for Creature spell weapon damage calculation.
Credits to cmangos https://github.com/cmangos/mangos-classic/commit/5e073e53174152375d629ecd8a9f1a6d4dfb31c0
2020-11-29 15:50:49 +02:00
ratkosrb 0b063dcc94 Fix some issues with ranged bots. 2020-11-09 21:08:16 +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 7636e5c8d0 Vekniss Warrior should always run. 2020-10-29 19:09:16 +02:00
ratkosrb a6160483b1 Fix spawning new npcs. 2020-09-02 04:36:25 +03:00
ratkosrb 9e99b6e103 Rework some npc chat commands.
Closes https://github.com/vmangos/core/issues/739
2020-08-25 11:07:53 +03:00
ratkosrb 7fa7efec22 Rename UNIT_FLAG_PASSIVE to UNIT_FLAG_IMMUNE_TO_NPC.
This could potentially break some scripts that used it incorrectly. Report any regressions.
2020-08-04 14:35:05 +03:00
ratkosrb a6abdfa4ae Prevent players without a shield from blocking. 2020-07-06 20:00:16 +03:00
ratkosrb f6d3b0de7a Add ability to switch gossip menu of npcs.
The reveler npcs use a different gossip menu id depending on which event spawned them.
2020-06-27 18:51:02 +03:00
ratkosrb 6b2d5190a2 Add display probability and scale to creature template. (#604) 2020-06-15 18:32:24 +03:00
ratkosrb 7e2b4bf6f0 Reduce size of WorldObject. 2020-06-07 14:51:10 +03:00