Core/Movement: Add LOS check for fleeingmovement target point.
Prevents fleeing or feared units from going to upper floor ignoring walls/ceilings with mmaps on(and usually get stucked). Current implementation just randomly selects a distance and angle against the frighting unit, when in narrow circumstance such as underground caves, such targeting point would be at another floor. Closes #11300 Ref #9475 (needs fixed confirmation)
This commit is contained in:
1 parent
0eadb41ed1
commit
23acf75d3b
15 files changed
+42
-27
No files matched your search
@@ -467,7 +467,7 @@ public:
|
||||
CallDragon(DATA_TENEBRON);
|
||||
break;
|
||||
case EVENT_CALL_SHADRON:
|
||||
CallDragon(DATA_SHADRON);
|
||||
CallDragon(DATA_SHADRON);
|
||||
break;
|
||||
case EVENT_CALL_VESPERON:
|
||||
CallDragon(DATA_VESPERON);
|
||||
|
||||
@@ -195,8 +195,8 @@ public:
|
||||
|
||||
struct npc_crystal_spike_triggerAI : public ScriptedAI
|
||||
{
|
||||
npc_crystal_spike_triggerAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
npc_crystal_spike_triggerAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
_count = 0;
|
||||
_despawntimer = 0;
|
||||
}
|
||||
|
||||
@@ -428,8 +428,8 @@ public:
|
||||
|
||||
struct npc_jennyAI : public ScriptedAI
|
||||
{
|
||||
npc_jennyAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
npc_jennyAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
setCrateNumber = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user