Self Condition - Aggressives and monster weight

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

Message
Author
Thrice
Noob
Noob
Posts: 15
Joined: 24 Dec 2011, 13:05
Noob?: No

Self Condition - Aggressives and monster weight

#1 Post by Thrice »

Openkore is using attackSkillSlot on less than 5 monsters.

I figured out that the "aggressives" self condition also takes monster weight from mon_control into account.
I do not think that this is how it is supposed to be (see wiki)

Wiki: http://wiki.openkore.com/index.php/Aggressives


Mon Control:

Code: Select all

monster_a 1 0 1 0 0 0 0 0 3.5
monster_b 1 0 1 0 0 0 0 0 2
Config:

Code: Select all

attackSkillSlot Cart Revolution {
	lvl 10
	dist 1.5
	sp > 100
	aggressives >= 5
	inLockOnly
}


Misc.pm (line 3898)

Code: Select all

if (defined $config{$prefix . "_aggressives"}) {
		return 0 unless (inRange(scalar ai_getAggressives(), $config{$prefix . "_aggressives"}));
	}
I think the problem lies in the call to ai_getAggressives.
I haven't tried it yet, but would a call to ai_getPlayerAggressives instead, solve the problem?

Locked