getPlantTriggers

getPlantTriggers([number entity]) → array<integer> entities
Returns the entities that have already woken up the plant entity since the start of their last turn. An entity wakes a given plant up only once between two of its turns: as long as its id is in this list, entering the plant's zone does not wake it up. This is not the history of the fight: an entity's id leaves the list at the start of each of its turns.

Returns the entities that have already woken up the plant entity since the start of their last turn, by increasing id.

An entity wakes a given plant up only once between two of its turns: as long as its id is in this list, entering the plant's zone (see getAwakeningZone) does not wake it up. This is not the history of the fight: an entity's id leaves the list at the start of each of its turns, and dead entities are not in it. While a plant is waking up, getPlantTrigger gives the entity that has just woken it up.

var plant = getNearestEnemy()
if (getAwakeningZone(plant) > 0 && !inArray(getPlantTriggers(plant), getEntity())) {
	debug('Entering its zone will wake it up')
}
const plant = Fight.getNearestEnemy()
if (plant.awakeningZone > 0 && !plant.plantTriggers.some(e => e.id === Fight.me.id)) {
	Debug.log('Entering its zone will wake it up')
}
plant = Fight.getNearestEnemy()
if plant.awakeningZone > 0 and not any(e.id == Fight.me.id for e in plant.plantTriggers):
	Debug.log('Entering its zone will wake it up')
Parameters
Return
Note