Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. if ($responsibleclient && $notcrit)
  2. {
  3. my $manacost = ($responsibleclient->GetMaxMana() * 0.01);
  4. if ($manacost <= $responsibleclient->GetMana())
  5. {
  6. $responsibleclient->SetMana($responsibleclient->GetMana() - $manacost);
  7. my $HTHeal = int($responsibleclient->GetMaxMana() * 1.2);
  8. my $HTHealBonus = int (($responsibleclient->GetWIS() * 1.5));
  9. my $manarestore = ($responsibleclient->GetMaxMana() * .2);
  10. my $healingtarget = $responsibleclient->GetTarget();
  11. if ($responsibleclient->GetMana() >= $manacost)
  12. {
  13. $healingtarget->CastToClient()->HealDamage($HTHeal + $HTHealBonus);
  14. $responsibleclient->SetMana($responsibleclient->GetMana() - $manacost);
  15. #$entity_list->MessageClose($responsibleclient, 0, 30, 0, "".$responsibleclient->GetCleanName()." heals ".$healingtarget->GetCleanName()." for $HTHeal + $HTHealBonus !");
  16. }
  17. if ($responsibleclient->GetMana + $manarestore <= $responsibleclient->GetMaxMana())
  18. {
  19. $responsibleclient->SetMana($responsibleclient->GetMana() + $manarestore);
  20. }
  21. else
  22. {
  23. $responsibleclient->SetMana($responsibleclient->GetMaxMana());
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement