EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bots (https://www.eqemulator.org/forums/forumdisplay.php?f=676)
-   -   Is this correct (https://www.eqemulator.org/forums/showthread.php?t=36151)

Thuz989 12-24-2012 11:04 AM

Is this correct
 
I was looking at bot code and this seems backwards to me unless im reading this wrong shouldnt the first archtype_Melee and second be caster???

Code:

switch(tar->GetArchetype())
                                        {
                                                case ARCHETYPE_CASTER:
                                                        //TODO: probably more caster specific spell effects in here
                                                        if(IsEffectInSpell(selectedBotSpell.SpellId, SE_AttackSpeed) || IsEffectInSpell(selectedBotSpell.SpellId, SE_ATK) ||
                                                                IsEffectInSpell(selectedBotSpell.SpellId, SE_STR) || IsEffectInSpell(selectedBotSpell.SpellId, SE_ReverseDS))
                                                        {
                                                                continue;
                                                        }
                                                        break;
                                                case ARCHETYPE_MELEE:
                                                        if(IsEffectInSpell(selectedBotSpell.SpellId, SE_IncreaseSpellHaste) || IsEffectInSpell(selectedBotSpell.SpellId, SE_ManaPool) ||
                                                                IsEffectInSpell(selectedBotSpell.SpellId, SE_CastingLevel) || IsEffectInSpell(selectedBotSpell.SpellId, SE_ManaRegen_v2) ||
                                                                IsEffectInSpell(selectedBotSpell.SpellId, SE_CurrentMana))
                                                        {
                                                                continue;
                                                        }
                                                        break;
                                                case ARCHETYPE_HYBRID:
                                                        //Hybrids get all buffs
                                                default:
                                                        break;
                                        }


c0ncrete 12-24-2012 11:35 AM

it's correct because it filters out (does not cast) spells with the effects found in each case.

Thuz989 12-24-2012 11:51 AM

Thank you for the explanation.


All times are GMT -4. The time now is 07:02 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.