* NPC was using GOSSIP_OPTION_QUESTGIVER as a UNIT_NPC_FLAGS when it should have been using UNIT_NPC_FLAG_QUESTGIVER.
* Behavior shouldn't change though as they both coincidentally were 2.
Npc positioning
Implemented slope check to avoid unwanted climbing for some kind of movements (backwards, repositioning etc.)
Implemented backwards movement
Re-implemented circle repositioning algorithm (smartest than retail, but with the same feeling)
Fixed random position of summoned minions
Improved pet following movement. Also, they attack NPC from behind now. Thanks to @Footman
Swimming creatures
Fixed max_z coordinate for swimming creatures. Now only part of their body is allowed to be out of the water level
Fixed pathfinder for swimming creatures creating shortcuts for specific segments, now they swim underwater to reach the seashore instead of flying above the water level.
Creatures with water InhabitType but no swimming flag now, when not in combat, will walk on water depth instead of swimming. Thanks @jackpoz for the original code
UNIT_FLAG_SWIMMING in UpdateEnvironmentIfNeeded to show the swimming animation correctly when underwater
Implemented HasEnoughWater check to avoid swimming creatures to go where the water level is too low but also to properly enable swimming animation only when a creature has enough water to swim.
Walking creatures
Extended the DetourNavMeshQuery adding area cost based on walkability (slope angle + source height) to find better paths at runtime instead of completely remove them from mmaps
improve Z height in certain conditions (see #4205, #4203, #4247 )
Flying creatures
Rewriting of the hover system
Removed hacks and improved the UpdateEnvironmentIfNeeded. Now creatures can properly switch from flying to walk etc.
Spells
LOS on spell effect must be calculated on CollisionHeight and HitSpherePoint instead of position coords.
Improved position for object/creature spawned via spells
Improved checks for Fleeing movements (fear spells)
Other improvements
Implemented method to calculate the CollisionWidth from dbc (used by repositioning algorithm etc.)
Improved raycast and collision checks
Co-authored-by: Footman <p.alexej@freenet.de>
Co-authored-by: Helias <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
* Reworked Archimonde
* missing spell scripts on db
* Travis?
* Thanks Nefertum
* Update rev_1554524766481187700.sql
* compact sql
* Update data/sql/updates/pending_db_world/rev_1554524766481187700.sql
Co-Authored-By: Pondaveia <43385840+Pondaveia@users.noreply.github.com>
* Update rev_1554524766481187700.sql
* Update boss_archimonde.cpp
* Resets
* Update boss_archimonde.cpp
* Update boss_archimonde.cpp
* Finger of death check improvement
Deku suggested adding this check instead:
- me->IsWithinMeleeRange(unit)
* fix: remove unneeded if statement
* Possible targets list bug
Added a list for both Finger of death and Spell protections specifically. Also cleared the lists when needed to avoid possible bugs.
* comment typo
* Last touches
* Copy paste fail?
Removed waypoint reached function. No idea how it got there!
* Update boss_archimonde.cpp
* The meele check was too small
This check allows the tank to move the boss without getting snipped by finger of death
* Update boss_archimonde.cpp
* Initializing summonlist on constructor
* Update hyjal.h
* Update hyjal.h
* Changed Archimonde AI
Hyjal_trash AI to BossAI
* Removing hyjal_trashAI function
* Somehow the commit above didn't remove
* unused variable
* bool initialization on the constructor
bool Enraged;
bool BelowTenPercent;
bool HasProtected;
bool IsChanneling;
* HOLY SHIT TRAVIS
- Quest: Lazy Peons: Moved from core to SAI
- Lazy Peon will now play work sounds
- Lazy Peon will now display the axe-swing emote
- Lazy Peon will now kneel in front of the pile, and start cutting in front of the tree
- Lazy Peon will now use better positions and orientations for the wood pile and the trees
- Lazy Peon will fall asleep after 80 seconds of working
- Lazy Peon will now activate itself every 120 000 till 150 000 milliseconds