Scripts/AreaTrigger: Added CanCaptureFlag and CaptureFlag hooks
Port From (https://github.com/TrinityCore/TrinityCore/commit/30f57de184fb96dfb6c548201e7717fa293682e1)
This commit is contained in:
@@ -46,6 +46,9 @@ namespace Game.Maps
|
||||
|
||||
public virtual void OnFlagStateChange(GameObject flagInBase, FlagState oldValue, FlagState newValue, Player player) { }
|
||||
|
||||
public virtual bool CanCaptureFlag(AreaTrigger areaTrigger, Player player) { return false; }
|
||||
public virtual void OnCaptureFlag(AreaTrigger areaTrigger, Player player) { }
|
||||
|
||||
protected EventMap _events = new();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user