vLabz
03-15-2005, 11:15 AM
There's a problem in AltSelfCast preventing from casting spells on friends.
The test condition is
if ((localSelfCast[spellName] and not ((AltSelfCast_UseSmart()) and (UnitIsFriend("player", "target")))) or AltSelfCast_CorrectKeysDown()) then
The last "or" in the condition should probably be chanded into a AND
Here is a clearer version of what the test could be :
if IsSelfCast AND CorrectKeyISDown AND NOT (Unitisfriend and smartselfcast) then
self cast the spell...
- the spell must be a self cast spell
- the correct key for self casting must be pressed (if self cast enabled by default it is always TRUE)
- you must not be targeting a friend if using smart self cast
this fix works fine on my machine.
The test condition is
if ((localSelfCast[spellName] and not ((AltSelfCast_UseSmart()) and (UnitIsFriend("player", "target")))) or AltSelfCast_CorrectKeysDown()) then
The last "or" in the condition should probably be chanded into a AND
Here is a clearer version of what the test could be :
if IsSelfCast AND CorrectKeyISDown AND NOT (Unitisfriend and smartselfcast) then
self cast the spell...
- the spell must be a self cast spell
- the correct key for self casting must be pressed (if self cast enabled by default it is always TRUE)
- you must not be targeting a friend if using smart self cast
this fix works fine on my machine.