Fix focusReagenCost for pets

All focus seem to use 33 ...
This commit is contained in:
Michael Cook (mackal) 2015-06-13 02:12:17 -04:00
parent d68075a5dc
commit 4898bfd822

View File

@ -4332,8 +4332,14 @@ int16 Client::CalcAAFocus(focusType type, const AA::Rank &rank, uint16 spell_id)
LimitFailure = true;
} else {
LimitInclude[4] = true;
if (IsEffectInSpell(spell_id, base1)) // Include
LimitInclude[5] = true;
// they use 33 here for all classes ... unsure if the type check is really needed
if (base1 == SE_SummonPet && type == focusReagentCost) {
if (IsSummonPetSpell(spell_id) || IsSummonSkeletonSpell(spell_id))
LimitInclude[5] = true;
} else {
if (IsEffectInSpell(spell_id, base1)) // Include
LimitInclude[5] = true;
}
}
break;
@ -5490,9 +5496,6 @@ int16 Client::GetFocusEffect(focusType type, uint16 spell_id) {
}
}
if(type == focusReagentCost && IsSummonPetSpell(spell_id) && GetAA(aaElementalPact))
return 100;
if(type == focusReagentCost && (IsEffectInSpell(spell_id, SE_SummonItem) || IsSacrificeSpell(spell_id)))
return 0;
//Summon Spells that require reagents are typically imbue type spells, enchant metal, sacrifice and shouldn't be affected