summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs
new file mode 100644
index 00000000..60d994d1
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs
@@ -0,0 +1,21 @@
+using System;
+
+namespace XMainClient
+{
+ internal class XBuffTriggerWhenRemove : XBuffTrigger
+ {
+ public XBuffTriggerWhenRemove(XBuff buff) : base(buff)
+ {
+ }
+
+ public override void OnRemove(XEntity entity, bool IsReplaced)
+ {
+ bool flag = !IsReplaced;
+ if (flag)
+ {
+ base.Trigger();
+ }
+ base.OnRemove(entity, IsReplaced);
+ }
+ }
+}