mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-31 10:22:32 +00:00
Remove dist in Mob casting AI for roots
This commit is contained in:
parent
14649ce611
commit
1f471aa9f9
@ -127,7 +127,6 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) {
|
|||||||
case SpellType_Root: {
|
case SpellType_Root: {
|
||||||
if (
|
if (
|
||||||
!tar->IsRooted()
|
!tar->IsRooted()
|
||||||
&& dist2 >= 900
|
|
||||||
&& MakeRandomInt(0, 99) < 50
|
&& MakeRandomInt(0, 99) < 50
|
||||||
&& tar->DontRootMeBefore() < Timer::GetCurrentTime()
|
&& tar->DontRootMeBefore() < Timer::GetCurrentTime()
|
||||||
&& tar->CanBuffStack(AIspells[i].spellid, GetLevel(), true) >= 0
|
&& tar->CanBuffStack(AIspells[i].spellid, GetLevel(), true) >= 0
|
||||||
@ -167,7 +166,7 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case SpellType_InCombatBuff: {
|
case SpellType_InCombatBuff: {
|
||||||
if(MakeRandomInt(0,100) < 50)
|
if(MakeRandomInt(0, 99) < 50)
|
||||||
{
|
{
|
||||||
AIDoSpellCast(i, tar, mana_cost);
|
AIDoSpellCast(i, tar, mana_cost);
|
||||||
return true;
|
return true;
|
||||||
@ -201,7 +200,7 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SpellType_Dispel: {
|
case SpellType_Dispel: {
|
||||||
if(MakeRandomInt(0, 100) < 15)
|
if(MakeRandomInt(0, 99) < 15)
|
||||||
{
|
{
|
||||||
if(!checked_los) {
|
if(!checked_los) {
|
||||||
if(!CheckLosFN(tar))
|
if(!CheckLosFN(tar))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user