Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($responsibleclient && $notcrit)
- {
- my $manacost = ($responsibleclient->GetMaxMana() * 0.01);
- if ($manacost <= $responsibleclient->GetMana())
- {
- $responsibleclient->SetMana($responsibleclient->GetMana() - $manacost);
- my $HTHeal = int($responsibleclient->GetMaxMana() * 1.2);
- my $HTHealBonus = int (($responsibleclient->GetWIS() * 1.5));
- my $manarestore = ($responsibleclient->GetMaxMana() * .2);
- my $healingtarget = $responsibleclient->GetTarget();
- if ($responsibleclient->GetMana() >= $manacost)
- {
- $healingtarget->CastToClient()->HealDamage($HTHeal + $HTHealBonus);
- $responsibleclient->SetMana($responsibleclient->GetMana() - $manacost);
- #$entity_list->MessageClose($responsibleclient, 0, 30, 0, "".$responsibleclient->GetCleanName()." heals ".$healingtarget->GetCleanName()." for $HTHeal + $HTHealBonus !");
- }
- if ($responsibleclient->GetMana + $manarestore <= $responsibleclient->GetMaxMana())
- {
- $responsibleclient->SetMana($responsibleclient->GetMana() + $manarestore);
- }
- else
- {
- $responsibleclient->SetMana($responsibleclient->GetMaxMana());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement