kjLotus wrote:thf does auto attack
ai_char_normal.cpp#2624Code: Select all
if (charutils::hasTrait(m_PChar, TRAIT_TREASURE_HUNTER)) { if (Monster->m_THLvl == 0) { Monster->m_THLvl = m_PChar->getMod(MOD_TREASURE_HUNTER); Monster->m_THPCID = m_PChar->id; } else if ((Monster->m_THPCID != m_PChar->id) && (Monster->m_THLvl < m_PChar->getMod(MOD_TREASURE_HUNTER))) Monster->m_THLvl = m_PChar->getMod(MOD_TREASURE_HUNTER)+1; else if ((Monster->m_THPCID == m_PChar->id) && (Monster->m_THLvl < m_PChar->getMod(MOD_TREASURE_HUNTER))) Monster->m_THLvl = m_PChar->getMod(MOD_TREASURE_HUNTER); if (Monster->m_THLvl > 12) Monster->m_THLvl = 12; }
if someone with TH never attacked, highestTH is just 0
This is probably why I'm no good at coding. I just don't see how that's an auto attack. To me it just checks to see if char has trait. I'll take your word for it.