mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Rule] Allow Skill ups from items (Default: On) (#1376)
This commit is contained in:
+4
-2
@@ -1419,7 +1419,9 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
|
||||
if(IsClient())
|
||||
{
|
||||
Client *c = CastToClient();
|
||||
c->CheckSongSkillIncrease(spell_id);
|
||||
if((IsFromItem && RuleB(Character, SkillUpFromItems)) || !IsFromItem) {
|
||||
c->CheckSongSkillIncrease(spell_id);
|
||||
}
|
||||
if (spells[spell_id].EndurTimerIndex > 0 && slot < CastingSlot::MaxGems)
|
||||
c->SetLinkedSpellReuseTimer(spells[spell_id].EndurTimerIndex, spells[spell_id].recast_time / 1000);
|
||||
c->MemorizeSpell(static_cast<uint32>(slot), spell_id, memSpellSpellbar);
|
||||
@@ -1442,7 +1444,7 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
|
||||
SetMana(GetMana());
|
||||
|
||||
// skills
|
||||
if (EQ::skills::IsCastingSkill(spells[spell_id].skill)) {
|
||||
if (EQ::skills::IsCastingSkill(spells[spell_id].skill) && ((IsFromItem && RuleB(Character, SkillUpFromItems)) || !IsFromItem)) {
|
||||
c->CheckIncreaseSkill(spells[spell_id].skill, nullptr);
|
||||
|
||||
// increased chance of gaining channel skill if you regained concentration
|
||||
|
||||
Reference in New Issue
Block a user