mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 16:28:28 +00:00
Bot Rework
This commit is contained in:
@@ -1483,6 +1483,10 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
#ifdef SPELL_EFFECT_SPAM
|
||||
snprintf(effect_desc, _EDLEN, "Illusion: race %d", effect_value);
|
||||
#endif
|
||||
if (caster && caster->IsOfClientBot() && GetIllusionBlock()) {
|
||||
break;
|
||||
}
|
||||
|
||||
ApplySpellEffectIllusion(spell_id, caster, buffslot, spells[spell_id].base_value[i], spells[spell_id].limit_value[i], spells[spell_id].max_value[i]);
|
||||
break;
|
||||
}
|
||||
@@ -1492,6 +1496,10 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
#ifdef SPELL_EFFECT_SPAM
|
||||
snprintf(effect_desc, _EDLEN, "Illusion Copy");
|
||||
#endif
|
||||
if (caster && caster->IsOfClientBot() && GetIllusionBlock()) {
|
||||
break;
|
||||
}
|
||||
|
||||
if(caster && caster->GetTarget()){
|
||||
SendIllusionPacket
|
||||
(
|
||||
@@ -10658,7 +10666,7 @@ int Mob::GetBuffStatValueBySlot(uint8 slot, const char* stat_identifier)
|
||||
|
||||
if (id == "caster_level") { return buffs[slot].casterlevel; }
|
||||
else if (id == "spell_id") { return buffs[slot].spellid; }
|
||||
else if (id == "caster_id") { return buffs[slot].spellid;; }
|
||||
else if (id == "caster_id") { return buffs[slot].spellid; }
|
||||
else if (id == "ticsremaining") { return buffs[slot].ticsremaining; }
|
||||
else if (id == "counters") { return buffs[slot].counters; }
|
||||
else if (id == "hit_number") { return buffs[slot].hit_number; }
|
||||
|
||||
Reference in New Issue
Block a user