cleanup: Fixes bugs and cleans up code (#660)
This commit is contained in:
parent
1de0b656a9
commit
679e8100f4
99 changed files with 160 additions and 346 deletions
|
|
@ -99,7 +99,7 @@ namespace Server.Spells.Necromancy
|
|||
{
|
||||
if (!m_Table.ContainsKey(target))
|
||||
{
|
||||
var tmpB = new MRBucket(scalar, new MRExpireTimer(caster, target, duration));
|
||||
var tmpB = new MRBucket(scalar, new MRExpireTimer(target, duration));
|
||||
m_Table.Add(target, tmpB);
|
||||
BuffInfo.AddBuff(target, new BuffInfo(BuffIcon.Mindrot, 1075665, duration, target));
|
||||
tmpB.m_MRExpireTimer.Start();
|
||||
|
|
@ -113,7 +113,7 @@ namespace Server.Spells.Necromancy
|
|||
private readonly DateTime m_End;
|
||||
private readonly Mobile m_Target;
|
||||
|
||||
public MRExpireTimer(Mobile caster, Mobile target, TimeSpan delay) : base(
|
||||
public MRExpireTimer(Mobile target, TimeSpan delay) : base(
|
||||
TimeSpan.FromSeconds(1.0),
|
||||
TimeSpan.FromSeconds(1.0)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue