module.exports = {
	type: 'stunned',

	init: function () {
		this.obj.spellbook.stopCasting();
	},

	events: {
		beforeMove: function (targetPos) {
			targetPos.success = false;
		},

		beforeDealDamage: function (damage) {
			if (damage)
				damage.failed = true;
		},

		beforeCastSpell: function (successObj) {		
			successObj.success = false;
		}
	}
};
