Skip to content

Commit

Permalink
Merge pull request #958 from AngelDE98/develop
Browse files Browse the repository at this point in the history
Fixed #893 VenomShooter Ammo
  • Loading branch information
Flet committed May 17, 2012
2 parents 139512b + 1e616a1 commit 91701f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/com/mojang/mojam/entity/weapon/VenomShooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.mojang.mojam.entity.Bullet;
import com.mojang.mojam.entity.BulletPoison;
import com.mojang.mojam.entity.Player;
import com.mojang.mojam.entity.mob.Mob;


Expand All @@ -13,8 +14,8 @@ public VenomShooter(Mob owner) {

public Bullet getAmmo(double xDir, double yDir) {
Bullet bullet = new BulletPoison(owner, xDir, yDir, bulletDamage);
bullet.pos.y = bullet.pos.y-19; //this will make the bullet look like its coming out of the snakes mouth
bullet.pos.x = bullet.pos.x;
if (!(owner instanceof Player))
bullet.pos.y = bullet.pos.y-19; //this will make the bullet look like its coming out of the snakes mouth
return bullet;
}

Expand Down

0 comments on commit 91701f4

Please sign in to comment.