Scripts/Item: Fix Nitro Boosts to only fail in flyable areas.
Port From (https://github.com/TrinityCore/TrinityCore/commit/ba7d8e9ace2de730034cd8b2b901f19f04129ef9)
This commit is contained in:
@@ -99,6 +99,17 @@ namespace Game.DataStorage
|
||||
|
||||
return Flags[0].HasAnyFlag(AreaFlags.Sanctuary);
|
||||
}
|
||||
|
||||
public bool IsFlyable()
|
||||
{
|
||||
if (Flags[0].HasAnyFlag(AreaFlags.Outland))
|
||||
{
|
||||
if (!Flags[0].HasAnyFlag(AreaFlags.NoFlyZone))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class AreaTriggerRecord
|
||||
|
||||
Reference in New Issue
Block a user