Some fixes
This commit is contained in:
@@ -704,7 +704,7 @@ namespace Game.Entities
|
||||
return Global.ObjectMgr.GetItemTemplate(GetEntry());
|
||||
}
|
||||
|
||||
public Player GetOwner()
|
||||
public override Player GetOwner()
|
||||
{
|
||||
return Global.ObjAccessor.FindPlayer(GetOwnerGUID());
|
||||
}
|
||||
@@ -2475,7 +2475,7 @@ namespace Game.Entities
|
||||
|
||||
public BonusData GetBonus() { return _bonusData; }
|
||||
|
||||
public ObjectGuid GetOwnerGUID() { return m_itemData.Owner; }
|
||||
public override ObjectGuid GetOwnerGUID() { return m_itemData.Owner; }
|
||||
public void SetOwnerGUID(ObjectGuid guid) { SetUpdateFieldValue(m_values.ModifyValue(m_itemData).ModifyValue(m_itemData.Owner), guid); }
|
||||
public ObjectGuid GetContainedIn() { return m_itemData.ContainedIn; }
|
||||
public void SetContainedIn(ObjectGuid guid) { SetUpdateFieldValue(m_values.ModifyValue(m_itemData).ModifyValue(m_itemData.ContainedIn), guid); }
|
||||
|
||||
@@ -1611,7 +1611,7 @@ namespace Game.Entities
|
||||
return Global.ObjAccessor.GetUnit(this, GetOwnerGUID());
|
||||
}
|
||||
|
||||
public Unit GetCharmerOrOwner()
|
||||
public virtual Unit GetCharmerOrOwner()
|
||||
{
|
||||
Unit unit = ToUnit();
|
||||
if (unit != null)
|
||||
|
||||
@@ -1835,7 +1835,7 @@ namespace Game.Entities
|
||||
return Global.ObjAccessor.GetUnit(this, charmerid);
|
||||
return null;
|
||||
}
|
||||
public Unit GetCharmerOrOwner()
|
||||
public override Unit GetCharmerOrOwner()
|
||||
{
|
||||
return !GetCharmerGUID().IsEmpty() ? GetCharmer() : GetOwner();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user