Base: Project Insanity
Problem: Not sure how to write this
Errors(Compiling Errors): None
Other Information/Media(Pictures, etc):
So I'm working on barrows, and I have it so when the player clicks on the chest to fight final brother, it shakes screen and rocks fall on the player. However, when the player kills the final brother and clicks chest, they teleport out. I have it so it resets the frame, but can't get it to stop dealing damage over time.
I have this so far
Code:
c.shakeScreen(3, 2, 3, 2);
			EventManager.getSingleton().addEvent(new Event() {
				public void execute(EventContainer p) {
					c.getPA().createPlayersProjectile(c.absX, c.absY, c.absX, c.absY, 60, 60, 60, 43, 31, - c.playerId - 1, 0);
					c.handleHitMask(5);

					} 
						
					
						
				}, 10000);
How would I get it to cancel the damage?