public override bool Ready(Creature creature, Skill skill, Packet packet)
{
Send.SkillReady(creature, skill.Info.Id);
// No default locks, set them depending on whether a shield is
// equipped or not.
if (AuraData.FeaturesDb.IsEnabled("TalentRenovationCloseCombat"))
{
if (creature.LeftHand == null || !creature.LeftHand.IsShield)
creature.Lock(Locks.Run);
}
// Send lock to client if renovation isn't enabled,
// so it doesn't let the creature run, no matter what.
else
{
creature.Lock(Locks.Run, true);
}
// Training
if (skill.Info.Rank == SkillRank.RF)
skill.Train(1); // Use the Defense skill.
return true;
}