Tremolo4 / stasiscl

Automatically exported from code.google.com/p/stasiscl
0 stars 0 forks source link

Tick crits: Healing style #161

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
new druid t9 4pc bonus gives Rejuvenation the ability to crit.

The framework support existed but wasn't completed.

lib\stasis\PAGE.PM
line 215: Change line to
"R-% Crit" => $self->{pm}->tip( _cricruglaText($sdata) ),

lib\stasis\extension\healing.pm
line 49: Add tickCritCount at the end

sub value {
    qw/hitCount hitTotal hitEffective hitMin hitMax critCount critTotal
critEffective critMin critMax tickCount tickTotal tickEffective tickMin
tickMax tickCritCount/;
}

line 84: add 3 lines after $type = "tick";

if( $event->{action} == SPELL_PERIODIC_HEAL ) {
        $type = "tick";
add:        if( $event->{critical} ) {
add:        $hdata->{"tickCritCount"} ++;
add:        }
    } elsif( $event->{critical} ) {
        $type = "crit";
    } else {
        $type = "hit";
    }

~Espoir

Original issue reported on code.google.com by wwusir...@gmail.com on 29 Sep 2009 at 8:02