public Buff(string buffName, float dur, BuffType type, Unit u) //no attacker specified = selfbuff, attacker aka source is same as attachedto { this.duration = dur; this.name = buffName; this.timeElapsed = 0; this.remove = false; this.attachedTo = u; this.attacker = u; this.buffType = type; this.movementSpeedPercentModifier = 0.0f; PacketNotifier.notifyAddBuff(u, attacker, buffName); }
public Buff(string buffName, float dur, BuffType type, Unit u, Unit attacker) { this.duration = dur; this.name = buffName; this.timeElapsed = 0; this.remove = false; this.attachedTo = u; this.attacker = attacker; this.buffType = type; this.movementSpeedPercentModifier = 0.0f; PacketNotifier.notifyAddBuff(u, attacker, buffName); }