Added mini particles for teleporting.
This commit is contained in:
@@ -316,6 +316,9 @@ bool Wizard::RightClickAbility(){
|
||||
p.teleportTarget=teleportPoint;
|
||||
p.teleportStartPosition=p.GetPos();
|
||||
p.iframe_time=0.35;
|
||||
for(int i=0;i<16;i++){
|
||||
game->AddEffect(Effect(p.GetPos()+vf2d{(rand()%160-80)/10.f,(rand()%160-80)/10.f},float(rand()%300)/1000,AnimationState::DOT_PARTICLE,0.3,0.2,{float(rand()%1000-500)/100,float(rand()%1000-500)/100},BLACK));
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
p.notificationDisplay={"Cannot Teleport to that location!",0.5};
|
||||
|
||||
Reference in New Issue
Block a user