123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
- namespace XmdsCommonSkill.Plugin.Buffs
- {
-
-
-
-
-
-
-
- public class XmdsBuff_MPChange : XmdsBuffBase
- {
-
-
-
- public int ChangeValue = 0;
-
-
-
- public bool ForSender = false;
- public override int GetAbilityID()
- {
- return (int)XmdsCommon.Plugin.XmdsBuffProperties.XmdsBuffAbility.MPChange;
- }
- public override void CopyTo(UnitBuff other)
- {
- var ret = other as XmdsBuff_MPChange;
- ret.ChangeValue = this.ChangeValue;
- ret.ForSender = this.ForSender;
- base.CopyTo(other);
- }
- protected override int OnBuffHit(XmdsVirtual hitter, XmdsVirtual attacker, CommonAI.Zone.Formula.AttackSource source, ref XmdsVirtual.AtkResult result)
- {
- if (ForSender)
- {
-
- attacker.AddMP(ChangeValue, attacker.mUnit);
- }
- else
- {
-
- hitter.AddMP(ChangeValue, attacker.mUnit);
- }
- return 0;
- }
- }
- }
|