Core/Battlegrounds: Move to scripts And a lot of misc commits i couldn't recover.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d0d5d309bb5877dc2fcb27f6cb123707a31ec1e8)
This commit is contained in:
@@ -233,7 +233,7 @@ namespace Game.Entities
|
||||
{
|
||||
return _heirlooms.ContainsKey(itemId);
|
||||
}
|
||||
|
||||
|
||||
public void UpgradeHeirloom(uint itemId, uint castItem)
|
||||
{
|
||||
Player player = _owner.GetPlayer();
|
||||
@@ -386,12 +386,8 @@ namespace Game.Entities
|
||||
_mounts[spellId] = flags;
|
||||
|
||||
// Mount condition only applies to using it, should still learn it.
|
||||
if (mount.PlayerConditionID != 0)
|
||||
{
|
||||
PlayerConditionRecord playerCondition = CliDB.PlayerConditionStorage.LookupByKey(mount.PlayerConditionID);
|
||||
if (playerCondition != null && !ConditionManager.IsPlayerMeetingCondition(player, playerCondition))
|
||||
return false;
|
||||
}
|
||||
if (!ConditionManager.IsPlayerMeetingCondition(player, mount.PlayerConditionID))
|
||||
return false;
|
||||
|
||||
if (!learned)
|
||||
{
|
||||
@@ -859,7 +855,7 @@ namespace Game.Entities
|
||||
|
||||
} while (knownTransmogIllusions.NextRow());
|
||||
}
|
||||
|
||||
|
||||
_transmogIllusions = new(blocks);
|
||||
|
||||
// Static illusions known by every player
|
||||
@@ -919,7 +915,7 @@ namespace Game.Entities
|
||||
{
|
||||
return transmogIllusionId < _transmogIllusions.Count && _transmogIllusions.Get((int)transmogIllusionId);
|
||||
}
|
||||
|
||||
|
||||
public bool HasToy(uint itemId) { return _toys.ContainsKey(itemId); }
|
||||
public Dictionary<uint, ToyFlags> GetAccountToys() { return _toys; }
|
||||
public Dictionary<uint, HeirloomData> GetAccountHeirlooms() { return _heirlooms; }
|
||||
|
||||
Reference in New Issue
Block a user