SphereCommunity
Changing the damage calculation - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Changing the damage calculation (/Thread-Changing-the-damage-calculation)

Pages: 1 2


RE: Changing the damage calculation - Extreme - 09-13-2013 02:58 AM

(09-13-2013 02:53 AM)RanXerox Wrote:  There are problems with that code example that Extreme posted:

Player A casts clumsy (which has spellflag_harm but not spellflag damage) on player B
Player B gets TAG.HITBYSPELL=1 but because no damage was dealt, @GetHit is not triggered
Player C walks over and hits Player B with a sword
Player B still has TAG.HITBYSPELL=1 so the sword hit results in the "magic damage calculation" instead of "physical damage"

Thanks, fixed now.


RE: Changing the damage calculation - AmpereJoule - 09-13-2013 05:46 AM

Extreme, thank you very much, i am going to test it.

RanXerox, thank you for the adversement.

But lets forget about this magic damage.

Let's concentrate at physical_damage_dealt = player_damage - enemy_amor.

I am doind tests, and it really looks like that it is already like this. So, lets finish this Thread.


Thank you very much \o\