()
| 45 | |
| 46 | // Private methods |
| 47 | private castWaterBall(): void{ |
| 48 | // Create the waterBall |
| 49 | var waterBall: Fireball = new Fireball(this.getQuest(), |
| 50 | this.getGlobalPosition().plus(new Pos(-2, 0)), |
| 51 | new Naming("A magical water ball", "a magical water ball"), |
| 52 | new Color(ColorType.SEAHORSE_WATER_BALL), |
| 53 | new Pos(2, 1), |
| 54 | 70, |
| 55 | this.getAndPossiblyCreateSpellCastingDamageReason(new Naming("A magical water ball", "a magical water ball")) |
| 56 | ); |
| 57 | |
| 58 | // No target |
| 59 | waterBall.setTargetTypeNoTarget(new Pos(-2, 0)); |
| 60 | |
| 61 | // Add the entity |
| 62 | this.getQuest().addEntity(waterBall); |
| 63 | } |
| 64 | |
| 65 | // willDie() |
| 66 | public willDie(): void{ |
nothing calls this directly
no test coverage detected