mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
added mob name colour update
- added mobmods (need to be loaded from db) - added Zone.GetBattleNpcById - added missing IsValidTarget check in AttackState
This commit is contained in:
@@ -526,6 +526,16 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
}
|
||||
}
|
||||
|
||||
public BattleNpc GetBattleNpcById(uint id)
|
||||
{
|
||||
foreach (var bnpc in GetAllActors<BattleNpc>())
|
||||
{
|
||||
if (bnpc.GetBattleNpcId() == id)
|
||||
return bnpc;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void DespawnActor(string uniqueId)
|
||||
{
|
||||
RemoveActorFromZone(FindActorInZoneByUniqueID(uniqueId));
|
||||
|
Reference in New Issue
Block a user