Eluna update version
Eluna update version
Eluna update version
[z2451] Big rename of creature_template fields.

Also renamed core part to have same field name than sql.

Added new fields will be used in near near future for new stats system.

Please refer to http://cmangos.net/thread-431.html for more informations.

Thank to all involved on this.
[z2452] Loading/reloading classlevelstats.

Simple function to load and reload creature_template_classlevelstats table.
Also add getter.
Part 2/3 of new stats system.

Thank to @Schmoozerd.
[z2453] Implement new stats system for Health and Mana.

Core now suport health and mana from new stats system.

To make it work you'll need to have DB part also wich is not yet public.

So till that DB will be released health and mana will be prossessed like as usual.

Thank to @X-Savior for making it possible.
Thank to @Schmoozerd for his code improvement.
[z2454] Correctly check aura on target for HealingBonusTaken instead of self.

The paladin has to buff himself with Blessing of Light for the target to receive more healing.

Fix cmangos/issues#279
Eluna update version
[z2455] Pet stats are not modified by owner stats in vanilla.

http://www.wowwiki.com/Patch_2.0.1 : All pets will now receive a percentage of their master's armor, spell damage, spell resistances, attack power, and stamina.
Eluna update version
Eluna update version
[z2456] Improve handling of TargetMMGen

This will have impact on Chase and Follow Movement.

* Refactor code to check if a new position is required for the MMGen into the new function RequiresNewPosition
* Refactor code to get the current targeted distance into function GetDynamicTargetDistance
* Change ChaseMMGen (angle = 0.0f case) chase to best contact point, not zero angle.

Thanks to Cala and X-Savior for testing. Special thanks to cala for also suggesting improved values for the magic numbers

(based on commit [12565] - 897ed82)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2094] - 118962b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2457] Correct some BG chat message missing target name. Thank to @CamilleMoon for pointing.

(based on commit [12601] - 8ce25e0)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2095] - a0338ec)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2458] Set max gossip menu items to 32

Client does not show more than that.

Signed-off-by: stfx <stfx@hotmail.de>

(based on commit [12602] - 5e15f3b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2096] - 4ecc508)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2459] Update all stats after creature respawn. That fix the stats were not correct when creature could have more than one level.

(based on commit [12609] - 1c83096)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2099] - f819095)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2460] Remove unused argument in CalculateMeleeDamage

(based on commit [12610] - 078f88d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2100] - d095e4b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2461] This is used to prevent creatures from pulling too many nearby monsters, for example during certain scripted events.

A good example is Mr. Smite in the Deadmines. There are two guards at the
bottom of his bridge which trigger aggro for him, but if he is missing
this flag he will also pull nearby mobs on the ship, which is not expected
behavior.

(based on commit [12612] - cc137f6)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2101] - 066c3b6)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2462] Add ACTION_T_SET_STAND_STATE for EventAI

This will allow changing the stand state of the current creature

(based on commit [12613] - bbb6f0e)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2102] - 128b238)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2463] Reserve more DB_SCRIPT_STRING_ID. It seem that could be usefull.

(based on commit [12614] - 43f0d77)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2103] - f687f77)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2464] Fix creature loose target while rooted.

(based on commit [12617] - 34d4083)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2105] - d9cfdb3)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>