uint32_t MoveEvent::StepInField(Creature* creature, Item* item, const Position&, const Position&)
{
	MagicField* field = item->getMagicField();
	if (field) {
		field->onStepInField(creature);
		return 1;
	}

	return LUA_ERROR_ITEM_NOT_FOUND;
}
Beispiel #2
0
uint32_t MoveEvent::StepInField(Creature* creature, Item* item,
	const Position& fromPos, const Position& toPos)
{
	MagicField* field = item->getMagicField();

	if(field){
		bool purposeful = true;
		if(creature->getPlayer())
			purposeful = false;

		field->onStepInField(creature, purposeful);
		return 1;
	}

	return LUA_ERROR_ITEM_NOT_FOUND;
}